scvcs 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d95c969002a0c3d649c8c6ad1d67598f9a52d3e9
4
- data.tar.gz: 910818281428ececb615e2d5c3bac8fef76f3c11
3
+ metadata.gz: 5a173a5a1b0f59c777e51c85de59d81a62d61728
4
+ data.tar.gz: 7ac0ea8b723fb11a451d32f9e86945352953cbf9
5
5
  SHA512:
6
- metadata.gz: 8444269dd1ae1cf9b785fde84d247e5278b8f54b1f76dae9e56de0f49c9446032a22fa0e11a403a0eecb4969c5a4b7de6207a2afeda70a24454beeaca15f6f6f
7
- data.tar.gz: 836dff26892f880ccf52f2acd82f4201f3ff2f292f1f627ea71c4e332ca285e94280c6acc8332a33c5c194b7a1b3254649401dddc8d40cb5f49ba8ffaaa9a101
6
+ metadata.gz: 8d45f6206a16e4dfc06b55080fc16dbf73c82fc98759c65b38efbecb784401f27fb111cdc4a5a42ec2a38f721d83fc95049231fa415005930c245f491d7b7a36
7
+ data.tar.gz: 50e6dbe0c627a2bccfaab030a33c084a58db707efe39f57d8e9851adea77274d7e12b7bc4086f0b5d2b4b8fedf13ab6656d7d86c786aa10b33c914727a4bfb6b
@@ -91,7 +91,9 @@ command :remote do |c|
91
91
  repository.set_label local_branch, nil
92
92
  end
93
93
 
94
- raise 'There is no remote with this name' unless repository.config['remotes'][remote_name]
94
+ unless repository.config['remotes'] and repository.config['remotes'][remote_name]
95
+ raise 'There is no remote with this name'
96
+ end
95
97
 
96
98
  remote_file_store = SCV::HTTPFileStore.new repository.config['remotes'][remote_name]['url']
97
99
  remote_object_store = SCV::ObjectStore.new remote_file_store
data/bin/scv CHANGED
@@ -72,7 +72,7 @@ pre do |global, command, options, args|
72
72
 
73
73
  # Check if there is a commit in the repository
74
74
  # as most commands expect one to exist.
75
- unless [:init, :status, :commit, :server, :config].include? command.name
75
+ unless [:init, :status, :commit, :server, :config, :fetch, :add].include? command.name
76
76
  raise "There are no commits in the repository" if repository.branch_head.nil?
77
77
  end
78
78
 
@@ -1,3 +1,3 @@
1
1
  module SCV
2
- VERSION = '0.2.4'
2
+ VERSION = '0.2.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scvcs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Georgy Angelov