@@ -27,8 +27,8 module Redmine | |||||
27 |
|
27 | |||
28 | # Get the revision of a particuliar file |
|
28 | # Get the revision of a particuliar file | |
29 | def get_rev (rev,path) |
|
29 | def get_rev (rev,path) | |
30 |
cmd=" |
|
30 | cmd="#{GIT_BIN} --git-dir #{target('')} show #{shell_quote rev} -- #{shell_quote path}" if rev!='latest' and (! rev.nil?) | |
31 |
cmd=" |
|
31 | cmd="#{GIT_BIN} --git-dir #{target('')} log -1 master -- #{shell_quote path}" if | |
32 | rev=='latest' or rev.nil? |
|
32 | rev=='latest' or rev.nil? | |
33 | rev=[] |
|
33 | rev=[] | |
34 | i=0 |
|
34 | i=0 |
General Comments 0
You need to be logged in to leave comments.
Login now