scvcs 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/commands/remote.rb +3 -1
- data/bin/scv +1 -1
- data/lib/scv/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a173a5a1b0f59c777e51c85de59d81a62d61728
|
4
|
+
data.tar.gz: 7ac0ea8b723fb11a451d32f9e86945352953cbf9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d45f6206a16e4dfc06b55080fc16dbf73c82fc98759c65b38efbecb784401f27fb111cdc4a5a42ec2a38f721d83fc95049231fa415005930c245f491d7b7a36
|
7
|
+
data.tar.gz: 50e6dbe0c627a2bccfaab030a33c084a58db707efe39f57d8e9851adea77274d7e12b7bc4086f0b5d2b4b8fedf13ab6656d7d86c786aa10b33c914727a4bfb6b
|
data/bin/commands/remote.rb
CHANGED
@@ -91,7 +91,9 @@ command :remote do |c|
|
|
91
91
|
repository.set_label local_branch, nil
|
92
92
|
end
|
93
93
|
|
94
|
-
|
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
|
|
data/lib/scv/version.rb
CHANGED