]> source.dussan.org Git - redmine.git/commitdiff
Fixed: Redmine::Scm::Adapters::GitAdapter#get_rev ignored GIT_BIN constant (#1207).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 13 May 2008 17:54:51 +0000 (17:54 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 13 May 2008 17:54:51 +0000 (17:54 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1428 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/git_adapter.rb

index 77604f283e8fd29d0d949b9a65571161ad92d7f2..a9ab505a85ebae4ec6594e71b9117e852fe605ea 100644 (file)
@@ -27,8 +27,8 @@ module Redmine
 
         # 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