Skip to content

Instantly share code, notes, and snippets.

@saschadoemer
Last active September 21, 2023 13:44
Show Gist options
  • Save saschadoemer/5c1873f44e9188e03d4e044bf22217d7 to your computer and use it in GitHub Desktop.
Save saschadoemer/5c1873f44e9188e03d4e044bf22217d7 to your computer and use it in GitHub Desktop.
Simple workaround for "no-tty" GPG signing - Part I
# file /home/user/gpg-no-tty.sh
#!/bin/bash
/usr/bin/gpg --batch --no-tty "$@"
@saschadoemer
Copy link
Author

Thanks! Your solution was instrumental in helping me work around a weird bug on Emacs' Version Control, where I was getting the famous "gpg failed to sign the data fatal: failed to write commit object" error message.

Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment