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.
- checksums.yaml +4 -4
- data/lib/git.rb +5 -1
- data/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7eb8b31e33d49a7842d428cb59c707160a7e68731f8e7e339e44394c66000b5d
|
4
|
+
data.tar.gz: acf6b76fcd8d67f6c1fd621243ba4b290c74f551e609976eed4b9f978b8d4e4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
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.
|
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-
|
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
|