rjgit 5.4.2.0 → 5.4.2.1

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 +5 -1
  3. data/lib/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 39f8a936a67ceeab8a72588eb9cbe80b204ff8ecfa2b8b9b62692e87947d33d6
4
- data.tar.gz: 621f246226c7347df618fdc412694227f92ac0ac9c4431e292a509ea2f71480f
3
+ metadata.gz: 7eb8b31e33d49a7842d428cb59c707160a7e68731f8e7e339e44394c66000b5d
4
+ data.tar.gz: acf6b76fcd8d67f6c1fd621243ba4b290c74f551e609976eed4b9f978b8d4e4f
5
5
  SHA512:
6
- metadata.gz: 2e3136e29b1eaa3fcecc91ef654b73406a4271d5d26b2fed9ad4aa63c0af3e79cfc13f78eb7123524054c9d56d498d59576d9057847b168a4988ee7133a7b361
7
- data.tar.gz: 991d9fa265d23da1159cb8137aca135995b04cc56d3060bf0babb136168d00cff827cb73cc18f52c500d411254437603a7067e013e6e7e8287daa0dbfb86f2a4
6
+ metadata.gz: 96bf8dac7e004f6f7ad34238c81746801dbc0fecf03d2d0031c40fe558a86aaf1534c3c528d982df3f94d01604c3a9c899ce0df52cdb330f21bfc96b64a0a50b
7
+ data.tar.gz: 64f5f73a54bb5d6da4408d6161c1de32c07ecf151b36cea030eb668d194e39f523085632ff18529afcc34a21ad2d0f83dfcc5a2d59c232c83b631a7e4dc89dd9
data/lib/git.rb CHANGED
@@ -268,7 +268,11 @@ module RJGit
268
268
  def checkout(branch_name = "master", options = {})
269
269
  checkout_command = @jgit.checkout.set_name(branch_name)
270
270
  # call :setStartPoint directly to avoid ambiguity warning
271
- checkout_command.java_send :setStartPoint, [RevCommit], options[:commit]
271
+ if options[:commit].is_a?(org.eclipse.jgit.revwalk.RevCommit)
272
+ checkout_command.java_send :setStartPoint, [org.eclipse.jgit.revwalk.RevCommit], options[:commit]
273
+ else
274
+ checkout_command.java_send :setStartPoint, [java.lang.String], options[:commit]
275
+ end
272
276
  options[:paths].each {|path| checkout_command.add_path(path)} if options[:paths]
273
277
  checkout_command.set_create_branch(true) if options[:create]
274
278
  checkout_command.set_force(true) if options[:force]
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RJGit
2
- VERSION = "5.4.2.0"
2
+ VERSION = "5.4.2.1"
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: 5.4.2.0
4
+ version: 5.4.2.1
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: 2019-09-17 00:00:00.000000000 Z
15
+ date: 2019-09-18 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  requirement: !ruby/object:Gem::Requirement