Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix commit GPG signing on Windows #43

Open
NathanUrwin opened this issue Aug 9, 2018 · 2 comments
Open

Fix commit GPG signing on Windows #43

NathanUrwin opened this issue Aug 9, 2018 · 2 comments

Comments

@NathanUrwin
Copy link
Owner

gpg: cannot open tty `no tty': No such file or directory
error: gpg failed to sign the data
fatal: failed to write commit object
Traceback (most recent call last):
  File "C:\Users\user\AppData\Local\Temp\tmpw7r37qjr.py", line 429, in <module>
    main()
  File "C:\Users\user\AppData\Local\Temp\tmpw7r37qjr.py", line 424, in main
    PostGenProjectHook().run()
  File "C:\Users\user\AppData\Local\Temp\tmpw7r37qjr.py", line 416, in run
    self._git_repo()
  File "C:\Users\user\AppData\Local\Temp\tmpw7r37qjr.py", line 368, in _git_repo
    self.git_commit()
  File "C:\Users\user\AppData\Local\Temp\tmpw7r37qjr.py", line 220, in git_commit
    run("git commit --message {}".format(quote(message)))
  File "c:\python37\lib\site-packages\invoke\__init__.py", line 40, in run
    return Context().run(command, **kwargs)
  File "c:\python37\lib\site-packages\invoke\context.py", line 93, in run
    return self._run(runner, command, **kwargs)
  File "c:\python37\lib\site-packages\invoke\context.py", line 100, in _run
    return runner.run(command, **kwargs)
  File "c:\python37\lib\site-packages\invoke\runners.py", line 268, in run
    return self._run_body(command, **kwargs)
  File "c:\python37\lib\site-packages\invoke\runners.py", line 401, in _run_body
    raise UnexpectedExit(result)
invoke.exceptions.UnexpectedExit: Encountered a bad command exit code!

Command: 'git commit --message ^"Initial commit^"'

Exit code: 128

Stdout: already printed

Stderr: already printed


ERROR: Stopping generation because post_gen_project hook script didn't exit successfully
Hook script failed (exit status: 1)
@NathanUrwin NathanUrwin added the bug label Aug 9, 2018
@NathanUrwin NathanUrwin self-assigned this Aug 9, 2018
@NathanUrwin NathanUrwin added this to the Version 0.7.0 (Beta) milestone Aug 9, 2018
@NathanUrwin
Copy link
Owner Author

NathanUrwin commented Aug 9, 2018

Same Invoke Windows pty issue like #34 and #42 but made into separate issues since the hot fixes are downstream work-a-rounds instead of a fix upstream. Recommend gpg-agent for this specific issue?

NathanUrwin added a commit that referenced this issue Aug 12, 2018
@NathanUrwin
Copy link
Owner Author

NathanUrwin commented Aug 16, 2018

Check for gpg-agent? Currently disables commit signing temporarily for the initial commit.

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

No branches or pull requests

1 participant