Browse Source

fix error in buildtools : UpdateAssemblyInfo failed when there is a banner in start of cmd

pull/597/head
Pierrick Gourlain 10 years ago committed by pgourlain
parent
commit
398844fd28
  1. 3
      BuildTools/UpdateAssemblyInfo/Main.cs

3
BuildTools/UpdateAssemblyInfo/Main.cs

@ -224,7 +224,8 @@ namespace UpdateAssemblyInfo @@ -224,7 +224,8 @@ namespace UpdateAssemblyInfo
string line;
int revNum = BaseCommitRev;
while ((line = p.StandardOutput.ReadLine()) != null) {
if (gitCommitHash == null) {
//keep only line that contains git hash
if (gitCommitHash == null && line != null && line.Length == BaseCommit.Length) {
// first entry is HEAD
gitCommitHash = line;
}

Loading…
Cancel
Save