I was working with a repository and I wanted to create a patch stack from the tag OPENLDAP_REL_ENG_2_6_3, so I did this:
git checkout -b 2.6.3-patches OPENLDAP_REL_ENG_2_6_3
stg init
...a series of `git am` commands...
stg uncommit -t OPENLDAP_REL_ENG_2_6_3 -x
This failed with:
error: Target `OPENLDAP_REL_ENG_2_6_3` is not a commit
And indeed, OPENLDAP_REL_ENG_2_6_3 is an annotated tag:
$ git cat-file -t OPENLDAP_REL_ENG_2_6_3
tag
This was surprising because I generally expect to be able to use tags -- both simple and annotated -- in place of commit references without problems. The workaround was to spell the tag name like this:
stg uncommit -t OPENLDAP_REL_ENG_2_6_3^{commit} -x
Is this something that stgit should handle automatically?