Skip to content

Instantly share code, notes, and snippets.

@cebe
Created October 13, 2016 08:44
Show Gist options
  • Save cebe/5d0905862f10caf58c61389c6ae1d3cc to your computer and use it in GitHub Desktop.
Save cebe/5d0905862f10caf58c61389c6ae1d3cc to your computer and use it in GitHub Desktop.
git tag bug
#!/bin/sh -e
mkdir gitbug && cd gitbug
git init
touch README.md
git add README.md
git commit -m "initial commit"
echo "this is the example from 'git help tag':"
GIT_COMMITTER_DATE="2006-10-02 10:31" git tag -s -m "mytag1" v1.0.1
echo "it has the correct date:"
git show v1.0.1
echo "it works without signing:"
GIT_COMMITTER_DATE="2006-10-02 10:31" git tag -m "mytag2" v1.0.2
git show v1.0.2
echo "but it does not work if you specify the message via editor:"
GIT_COMMITTER_DATE="2006-10-02 10:31" git tag -a v1.0.3
git show v1.0.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment