Project

General

Profile

Bug #2960 ยป 0001-Fix-svn-revison-detection-of-git-based-repo-on-Windo.patch

Small patch to resolve the problem. - vvs (Vladimir Sizikov), 03/14/2010 07:35 PM

View differences:

tool/file2lastrev.rb
register(".git")
def get_revisions(path)
logcmd = %Q[git log -n1 --grep='^ *git-svn-id: .*@[0-9][0-9]* ']
logcmd = %Q[git log -n1 --grep="^ *git-svn-id: .*@[0-9][0-9]* "]
idpat = /git-svn-id: .*?@(\d+) \S+\Z/
super do
last = `#{logcmd}`[idpat, 1]
    (1-1/1)