Skip to content

Commit

Permalink
Correctly handle case where version file is deleted after existing
Browse files Browse the repository at this point in the history
  • Loading branch information
robmen committed Jun 18, 2017
1 parent f92d363 commit 9edf81a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/NerdBank.GitVersioning/VersionOracle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,8 @@ private static bool IsVersionFileChangedInWorkingTree(VersionOptions committedVe
return !EqualityComparer<VersionOptions>.Default.Equals(workingVersion, committedVersion);
}

return false; // a missing working version is allowed and not a change.
// A missing working version is a change only if it was previously commited.
return committedVersion != null;
}
}
}

0 comments on commit 9edf81a

Please sign in to comment.