Skip to content

Commit

Permalink
tests/push-refs.t: Set committer name when making a tag.
Browse files Browse the repository at this point in the history
Otherwise git will grab it from ~/.gitconfig, or fail if it's not
there, both of which are wrong for reproducible tests.

fix #339
  • Loading branch information
Taylor R Campbell committed Dec 9, 2024
1 parent 1ce7070 commit d5438e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/push-refs.t
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ Removing heads or branches is not supported.

Pushing/deleting tags is not supported.

$ git -C repo-git -c user.email=foo@bar tag -m 'Tagged' the-tag
$ git -C repo-git -c user.name=foo -c user.email=foo@bar tag -m 'Tagged' the-tag
$ git -C repo-git push origin --tags
To hg::.*/push-refs.t/repo-from-git (re)
! [remote rejected] the-tag -> the-tag (Pushing tags is unsupported)
Expand Down

0 comments on commit d5438e7

Please sign in to comment.