1 |
commit: af76565d011464a6da418478655848182099e117 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 27 22:28:40 2013 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 27 22:28:40 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=af76565d |
7 |
|
8 |
repoman: export GPG_TTY for bug #477728 |
9 |
|
10 |
--- |
11 |
bin/repoman | 6 ++++++ |
12 |
1 file changed, 6 insertions(+) |
13 |
|
14 |
diff --git a/bin/repoman b/bin/repoman |
15 |
index bbade95..5223439 100755 |
16 |
--- a/bin/repoman |
17 |
+++ b/bin/repoman |
18 |
@@ -638,6 +638,12 @@ if repo_config.sign_commit: |
19 |
# Pass GNUPGHOME to git for bug #462362. |
20 |
commit_env["GNUPGHOME"] = repoman_settings["PORTAGE_GPG_DIR"] |
21 |
|
22 |
+ # Pass GPG_TTY to git for bug #477728. |
23 |
+ try: |
24 |
+ commit_env["GPG_TTY"] = os.ttyname(sys.stdin.fileno()) |
25 |
+ except OSError: |
26 |
+ pass |
27 |
+ |
28 |
# In order to disable manifest signatures, repos may set |
29 |
# "sign-manifests = false" in metadata/layout.conf. This |
30 |
# can be used to prevent merge conflicts like those that |