rjgit 0.3.10 → 0.3.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/git.rb +2 -1
  3. data/lib/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c1a2ed014e4552131dfa9a476830910bcb9bbd21
4
- data.tar.gz: 8a87b56be6c11c9e0a3b408f38118d2890bc27b3
3
+ metadata.gz: b618e23467772955fc0403d3cb1b8803dde3dc13
4
+ data.tar.gz: 151b1b9c439651f3708dda40d643b59056380ec8
5
5
  SHA512:
6
- metadata.gz: 6a06ea1e11b4430f5ab2942780fcf2dcb3b049ef7cb35e5e6a521c569bbd0fc3f0d700fd9855c386f8a18f30f543e0f0049110bf4bb427a08aaa843864f9a9c9
7
- data.tar.gz: 24d10328ac8a7e7b87edd3ff3ae72362190ca9ed417ae42711c498e848a84f73a9dc9ece84c8c6596e5a0823516f393ddbc6096c1f91ca7f79ba5a3ab974ab37
6
+ metadata.gz: c5ac8b3d2e8a94b48217f8ec578318c868bdc40a86c3efbbd771ed9858aa6cee44ec1ffba6736e224bdbe355fa34da6f7f1b63205d907278814dca134470e26f
7
+ data.tar.gz: e26d7a4a004976cb18ca906d045b2896a42a221727b41ac5fd6a5d3448fabab085ad3e17824f4d3e42d37112cf5059a7474a8154734d060194d2118f9f5ac7b1
data/lib/git.rb CHANGED
@@ -29,6 +29,7 @@ module RJGit
29
29
 
30
30
  def log(path = nil, revstring = Constants::HEAD, options = {})
31
31
  ref = jrepo.resolve(revstring)
32
+ return [] unless ref
32
33
  jcommits = Array.new
33
34
 
34
35
  if path && options[:follow]
@@ -41,7 +42,7 @@ module RJGit
41
42
  jcommits << jcommit
42
43
  start = jcommit
43
44
  end
44
- current_path = follow_renames(start, current_path)
45
+ current_path = follow_renames(start, current_path) if start
45
46
  break if current_path.nil?
46
47
  end
47
48
 
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RJGit
2
- VERSION = "0.3.10"
2
+ VERSION = "0.3.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rjgit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.10
4
+ version: 0.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maarten Engelen
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2015-04-09 00:00:00.000000000 Z
15
+ date: 2015-04-11 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: mime-types