scvcs 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5265005d966777f2d39211076c05e7c8356ce9e9
4
- data.tar.gz: 4be0064d1f5e32b5ee9ce51b9339eddfd7a90954
3
+ metadata.gz: d95c969002a0c3d649c8c6ad1d67598f9a52d3e9
4
+ data.tar.gz: 910818281428ececb615e2d5c3bac8fef76f3c11
5
5
  SHA512:
6
- metadata.gz: 154656f189eca23edb7ef3eb32a916fb73d3659d022596afb3d2de5979a4838a54b41bfb392004a9525019cf6b1563198b877ba2894941b29713d8e1318aae05
7
- data.tar.gz: f0ec34194bc5e061d50b00350b99423964443642ccc3544cbff957b5eb55d6a1133dd569624a1ace9a7d2396d0b119d0e84eeb4a6c5c5d91ca9553975f125904
6
+ metadata.gz: 8444269dd1ae1cf9b785fde84d247e5278b8f54b1f76dae9e56de0f49c9446032a22fa0e11a403a0eecb4969c5a4b7de6207a2afeda70a24454beeaca15f6f6f
7
+ data.tar.gz: 836dff26892f880ccf52f2acd82f4201f3ff2f292f1f627ea71c4e332ca285e94280c6acc8332a33c5c194b7a1b3254649401dddc8d40cb5f49ba8ffaaa9a101
@@ -23,7 +23,10 @@ command :commit do |c|
23
23
  repository_path = "#{global_options[:dir]}/.scv"
24
24
 
25
25
  unless options[:amend]
26
- status = repository.status repository.branch_head, ignore: [/^\.|\/\./]
26
+ commit_id = repository.branch_head
27
+ commit = commit_id ? repository[commit_id] : nil
28
+
29
+ status = repository.status commit, ignore: [/^\.|\/\./]
27
30
 
28
31
  if status.none? { |_, files| files.any? }
29
32
  raise 'No changes since last commit'
@@ -3,7 +3,8 @@ arg_name ''
3
3
  command :status do |c|
4
4
  c.action do |global_options, options, args|
5
5
  repository = global_options[:repository]
6
- commit = repository.branch_head
6
+ commit_id = repository.branch_head
7
+ commit = commit_id ? repository[commit_id] : nil
7
8
  status = repository.status commit,
8
9
  ignore: [/^\.|\/\./]
9
10
 
@@ -1,3 +1,3 @@
1
1
  module SCV
2
- VERSION = '0.2.3'
2
+ VERSION = '0.2.4'
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.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Georgy Angelov