Skip to content

How to handle forced message for a lightweight tag? #1092

@glenthomas

Description

@glenthomas

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    more-info-neededMore information is required in order to investigatequestion

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions