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