Skip to content

Commit ca0e512

Browse files
author
Priya Rani
authored
Merge pull request #121 from blackducksoftware/OTWO-5775
OTWO-5775 Make git_commit method public
2 parents 5f7ddcc + 79c02e1 commit ca0e512

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/ohloh_scm/git_svn/activity.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ def cat_file_parent(commit, diff)
4040
cat("#{git_commit(commit)}^", diff.path)
4141
end
4242

43+
def git_commit(commit)
44+
run("cd #{url} && git svn find-rev r#{commit.token}").strip
45+
end
46+
4347
private
4448

4549
def open_log_file(opts = {})
@@ -72,10 +76,6 @@ def cat(revision, file_path)
7276
run("cd #{url} && git show #{revision}:#{file_path.shellescape}").strip
7377
end
7478

75-
def git_commit(commit)
76-
run("cd #{url} && git svn find-rev r#{commit.token}").strip
77-
end
78-
7979
def git_svn_log_cmd
8080
"cd #{url} && git svn log"
8181
end

lib/ohloh_scm/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module OhlohScm
44
module Version
5-
STRING = '3.0.7'
5+
STRING = '3.0.8'
66
GIT = '2.17.1'
77
SVN = '1.9.7'
88
CVSNT = '2.5.04'

0 commit comments

Comments
 (0)