Skip to content

Git version warning on first commit

If a .gitversion file is added as the first commit ever, then a warning will be emitted 'Did not find any .gitversion file'.

Original Issue

tap sdk gitversion command warned existed .gitversion not found

Environment:

Windows 10, 64-bit

TAP 9.5.2

Steps to reproduce:

  1. Run git init in a project directory with .gitversion file.
  2. Commit all the files including .gitversion into git.
  3. Create a new branch (git checkout -b test-branch).
  4. Make some changes on a random file and commit it into the test-branch.
  5. Run tap sdk gitversion in that directory.

Actual result:

The command will return Did not find any .gitversion file. with the version string.

Expected result:

The command should return only the version string.

Edited by Rolf Madsen