Closed tjtelan closed 4 years ago
If a user wanted to build in information about the git repo into their artifact using the git repo info, it will always say that we are in a detached HEAD branch.
We can preserve branch information by checking code out similar to this approach:
git checkout <branch> && git reset --hard <hash>
If a user wanted to build in information about the git repo into their artifact using the git repo info, it will always say that we are in a detached HEAD branch.
We can preserve branch information by checking code out similar to this approach:
git checkout <branch> && git reset --hard <hash>