From af76565d011464a6da418478655848182099e117 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 27 Jul 2013 15:28:40 -0700 Subject: [PATCH] repoman: export GPG_TTY for bug #477728 --- bin/repoman | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/repoman b/bin/repoman index bbade9511..522343980 100755 --- a/bin/repoman +++ b/bin/repoman @@ -638,6 +638,12 @@ if repo_config.sign_commit: # Pass GNUPGHOME to git for bug #462362. commit_env["GNUPGHOME"] = repoman_settings["PORTAGE_GPG_DIR"] + # Pass GPG_TTY to git for bug #477728. + try: + commit_env["GPG_TTY"] = os.ttyname(sys.stdin.fileno()) + except OSError: + pass + # In order to disable manifest signatures, repos may set # "sign-manifests = false" in metadata/layout.conf. This # can be used to prevent merge conflicts like those that -- 2.26.2