diff options
author | Alex Rønne Petersen <alex@lycus.org> | 2014-06-14 11:23:33 +0400 |
---|---|---|
committer | Alex Rønne Petersen <alex@lycus.org> | 2014-06-14 11:23:33 +0400 |
commit | d0da5a52101f0368aea7010b1aaa33b9c87428d4 (patch) | |
tree | f8941f1bc57784a392071e43194b60f7633b0431 /scripts | |
parent | de820bd99da4c57ed09cf74d938f27532ae00ea1 (diff) |
[configure.cs] Trim leading `^` if present in `git blame` output.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/configure.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/configure.cs b/scripts/configure.cs index 04e08f9992..823f88f7cc 100644 --- a/scripts/configure.cs +++ b/scripts/configure.cs @@ -178,7 +178,7 @@ namespace MonoDevelop.Configuration while ((line = blame.ReadLine ()) != null && line.IndexOf ("Version=") == -1) ; if (line != null) { - string hash = line.Substring (0, line.IndexOf (' ')); + string hash = line.Substring (0, line.IndexOf (' ')).TrimStart ('^'); string dist = SystemUtil.RunProcess(SystemUtil.GitExe, "rev-list --count " + hash + "..HEAD", path); return int.Parse (dist.Trim ()); } |