You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GitInfo.2.1.2\build\GitInfo.targets(683,3): error : Could not retrieve first commit where branch xxx/yyy forked from master. Defaulting to zero commits.
The text was updated successfully, but these errors were encountered:
You most likely have configured your build to treat warnings as errors. I've now added warning codes to all warnings so you can ignore the warnings as needed.
We see the warning in our repository, too. We use a different branching model so the git merge-base --fork-point command will always fail. While it is possible to hide the GitInfo warning GI005, we also get a generic warning MSB3073 with a message The command ... exited with code 1 which would be potentially dangerous to hide.
Do you think you could update the build targets so that this warning is not issued, or perhaps add some condition to prevent running the "fork point check" from running altogether?
As seen in the linked target, the entire target (that's failing for your scenario) is conditioned with: Condition="'$(GitBaseVersion)' == '' And '$(GitIgnoreBranchVersion)' != 'true' ".
So if the behavior in that target shouldn't run for you, just set GitIgnoreBranchVersion=true in your project file.
GitInfo.2.1.2\build\GitInfo.targets(683,3): error : Could not retrieve first commit where branch xxx/yyy forked from master. Defaulting to zero commits.
The text was updated successfully, but these errors were encountered: