mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
Merge "Support non-ASCII GNUPGHOME environment variable"
This commit is contained in:
commit
69297c1b77
6
repo
6
repo
@ -432,6 +432,9 @@ def SetupGnuPG(quiet):
|
|||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
|
try:
|
||||||
|
env['GNUPGHOME'] = gpg_dir
|
||||||
|
except UnicodeEncodeError:
|
||||||
env['GNUPGHOME'] = gpg_dir.encode()
|
env['GNUPGHOME'] = gpg_dir.encode()
|
||||||
|
|
||||||
cmd = ['gpg', '--import']
|
cmd = ['gpg', '--import']
|
||||||
@ -638,6 +641,9 @@ def _Verify(cwd, branch, quiet):
|
|||||||
_print(file=sys.stderr)
|
_print(file=sys.stderr)
|
||||||
|
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
|
try:
|
||||||
|
env['GNUPGHOME'] = gpg_dir
|
||||||
|
except UnicodeEncodeError:
|
||||||
env['GNUPGHOME'] = gpg_dir.encode()
|
env['GNUPGHOME'] = gpg_dir.encode()
|
||||||
|
|
||||||
cmd = [GIT, 'tag', '-v', cur]
|
cmd = [GIT, 'tag', '-v', cur]
|
||||||
|
Loading…
Reference in New Issue
Block a user