raykit 0.0.422 → 0.0.423
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/raykit/git/repository.rb +5 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 394d7bbbf2a0d9f4f042835f8c645e2a0b7781b4392311352949f509cc9926dd
|
4
|
+
data.tar.gz: d948856e3b9b7823485cb516d5b8e9d523552ff426e0e7ecef153846221ceb23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8327e27f45dd93fc44b421a0a3704a23874847cbc0db3138ac522ef0f21c3546d3b9941d602b19d2d97449f00e2f152c8af1c05a57d635732c718e5b5a2b5cae
|
7
|
+
data.tar.gz: 74c6f02b5f8ab3999636c7ae6217cf9adf87038dae279812de2faeb0a6a3bcf423ea7dc0ec2f84065151546a1eaba43e70727c17f1159f042397c7d4a4909c84
|
@@ -77,9 +77,11 @@ module Raykit
|
|
77
77
|
# The latest commit id for a branch of the repostiory
|
78
78
|
def latest_commit(branch)
|
79
79
|
if checkout_local_clone_directory_branch(branch)
|
80
|
-
|
81
|
-
|
82
|
-
|
80
|
+
Dir.chdir(local_clone_directory) do
|
81
|
+
text = `git log -n 1`
|
82
|
+
scan = text.scan(/commit (\w+)\s/)
|
83
|
+
return scan[0][0].to_s
|
84
|
+
end
|
83
85
|
end
|
84
86
|
""
|
85
87
|
end
|
@@ -162,7 +164,6 @@ module Raykit
|
|
162
164
|
FileUtils.rm_rf(".git")
|
163
165
|
cmd = Raykit::Command.new(command)
|
164
166
|
cmd = cmd.run().summary().details_on_failure
|
165
|
-
#cmd = run(command).details_on_failure
|
166
167
|
end
|
167
168
|
FileUtils.rm_rf(make_dir) if (cmd.exitstatus == 0)
|
168
169
|
cmd
|