PowerShell ISE Git GPG Signed Commit Error -
if in command line git sign commit in powershell ise (as admin or not) following error:
c:\users\myname\myrepo> git commit -s -m "testing signed commit in powershell ise."
git : gpg: warning: unsafe permissions on homedir 'c:\users\jerry\appdata\roaming\gnupg' @ line:1 char:1 + git commit -s -m "testing signed commit in powershell ise." + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + categoryinfo : notspecified: (gpg: warning: u...\roaming\gnupg':string) [], remoteexception + fullyqualifiederrorid : nativecommanderror gpg : cannot open tty no tty': no such file or directory error: gpg failed sign data fatal: failed write commit object
signed commits work in command prompt , powershell console (as admin or not), i'm guessing gpg having issue ise? error permissions unsafe on "homedir" (where gnupg lives), don't know how make windows permissions directory safe gpg's requirements (if that's problem).
any appreciated, thanks!
gnupg not own user account able read , write contents of gnupg home directory (c:\users\jerry\appdata\roaming\gnupg
in case), not private key files contained.
remove privileges other user account own, possible opening properties , removing permissions.
an alternative set git use --no-permission-warning
flag, workaround , not fix issue.
Comments
Post a Comment