@@ -31,8 +31,8 module Redmine | |||||
31 | if rev != 'latest' && !rev.nil? |
|
31 | if rev != 'latest' && !rev.nil? | |
32 | cmd="#{GIT_BIN} --git-dir #{target('')} show --date=iso --pretty=fuller #{shell_quote rev} -- #{shell_quote path}" |
|
32 | cmd="#{GIT_BIN} --git-dir #{target('')} show --date=iso --pretty=fuller #{shell_quote rev} -- #{shell_quote path}" | |
33 | else |
|
33 | else | |
34 | branch = shellout("#{GIT_BIN} --git-dir #{target('')} branch") { |io| io.grep(/\*/)[0].strip.match(/\* (.*)/)[1] } |
|
34 | @branch ||= shellout("#{GIT_BIN} --git-dir #{target('')} branch") { |io| io.grep(/\*/)[0].strip.match(/\* (.*)/)[1] } | |
35 | cmd="#{GIT_BIN} --git-dir #{target('')} log --date=iso --pretty=fuller -1 #{branch} -- #{shell_quote path}" |
|
35 | cmd="#{GIT_BIN} --git-dir #{target('')} log --date=iso --pretty=fuller -1 #{@branch} -- #{shell_quote path}" | |
36 | end |
|
36 | end | |
37 | rev=[] |
|
37 | rev=[] | |
38 | i=0 |
|
38 | i=0 |
General Comments 0
You need to be logged in to leave comments.
Login now