Fixed: Redmine::Scm::Adapters::GitAdapter#get_rev ignored GIT_BIN constant (#1207).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1428 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
75d25b7e61
commit
835cc7ed7c
@ -27,8 +27,8 @@ module Redmine
|
|||||||
|
|
||||||
# Get the revision of a particuliar file
|
# Get the revision of a particuliar file
|
||||||
def get_rev (rev,path)
|
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_BIN} --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('')} log -1 master -- #{shell_quote path}" if
|
||||||
rev=='latest' or rev.nil?
|
rev=='latest' or rev.nil?
|
||||||
rev=[]
|
rev=[]
|
||||||
i=0
|
i=0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user