How do i add/remove tag using a commit message ?

Deleted user November 1, 2011

Hi,

I just started using Source Tree. I got stuck when i wanted to tag a branch. There is a option to tag, i tried that it did tag the branch but uses its own commit message, so when i try to push it to repository, it fails because our pre-commit hook doesn't allow to commit without a "Jira Number".

This happens for both Adding/Removing tag, is there a way i can use my own commit message to add/remove tag.

Thank you,

Suvir

1 answer

1 accepted

0 votes
Answer accepted
stevestreeting
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 1, 2011

No you can't currently customise the tag message. Your pre-commit hook seems a bit too strict, there are plenty of commits that wouldn't realistically have a real JIRA number, such as tags, merges and branch closures. I can log a feature request for the tag, but in practice I don't think that pre-commit hook has been fully thought through.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events