Project

General

Profile

Patch #1207 ยป git-get_rev.patch

Patch for this issue. - Simone Carletti, 2008-05-08 00:58

View differences:

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
    (1-1/1)