git-js icon indicating copy to clipboard operation
git-js copied to clipboard

How to handle forced message for a lightweight tag?

Open glenthomas opened this issue 3 weeks ago • 0 comments

Hello, I am trying to handle creating a lightweight git tag. The user may have tag.gpgsign=true in their config, in which case git will open an editor waiting for a message to be added, so await git.tag(args); hangs. I have had a read through the docs and am not sure how I should handle this scenario. Is there a way that I can detect that git has opened the editor and is awaiting input so that I can request for a message to complete the tag operation and avoid the promise not resolving?

glenthomas avatar Dec 03 '25 08:12 glenthomas