Browse Source

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

pull/597/head
Pierrick Gourlain 11 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
string line; string line;
int revNum = BaseCommitRev; int revNum = BaseCommitRev;
while ((line = p.StandardOutput.ReadLine()) != null) { 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 // first entry is HEAD
gitCommitHash = line; gitCommitHash = line;
} }

Loading…
Cancel
Save