Patch #1207 ยป git-get_rev.patch
lib/redmine/scm/adapters/git_adapter.rb (working copy) | ||
---|---|---|
27 | 27 | |
28 | 28 |
# Get the revision of a particuliar file |
29 | 29 |
def get_rev (rev,path) |
30 |
cmd="git --git-dir #{target('')} show #{shell_quote rev} -- #{shell_quote path}" if rev!='latest' and (! rev.nil?)
|
|
31 |
cmd="git --git-dir #{target('')} log -1 master -- #{shell_quote path}" if
|
|
30 |
cmd="#{GIT_BIN} --git-dir #{target('')} show #{shell_quote rev} -- #{shell_quote path}" if rev!='latest' and (! rev.nil?)
|
|
31 |
cmd="#{GIT_BIN} --git-dir #{target('')} log -1 master -- #{shell_quote path}" if
|
|
32 | 32 |
rev=='latest' or rev.nil? |
33 | 33 |
rev=[] |
34 | 34 |
i=0 |