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
We distribute code to workstations via checkout of a signed git tag. If there is a branch with the same as the tag, then the tag will verify, but when we actually git checkout <tag name> then the branch, not the tag, will be checked out.
Short term
As a guard, implement logic to verify there is no duplicate tag and branch prior to checkout.
Long term
We should stop distributing code in this way and implement #3502
The text was updated successfully, but these errors were encountered:
@eloquence had a very good suggestion here (idea shared privately):
I'm curious if git show-ref --heads --verify 0.x.0 may be an alternative to parsing stdout. It returns error code 0 if a branch with this name exists, and non-zero otherwise.
Description
We distribute code to workstations via checkout of a signed git tag. If there is a branch with the same as the tag, then the tag will verify, but when we actually
git checkout <tag name>
then the branch, not the tag, will be checked out.Short term
As a guard, implement logic to verify there is no duplicate tag and branch prior to checkout.
Long term
We should stop distributing code in this way and implement #3502
The text was updated successfully, but these errors were encountered: