diff options
Diffstat (limited to 'repo')
| -rwxr-xr-x | repo | 9 |
1 files changed, 5 insertions, 4 deletions
| @@ -264,8 +264,8 @@ def _SetupGnuPG(quiet): | |||
| 264 | gpg_dir, e.strerror) | 264 | gpg_dir, e.strerror) |
| 265 | sys.exit(1) | 265 | sys.exit(1) |
| 266 | 266 | ||
| 267 | env = dict(os.environ) | 267 | env = os.environ.copy() |
| 268 | env['GNUPGHOME'] = gpg_dir | 268 | env['GNUPGHOME'] = gpg_dir.encode() |
| 269 | 269 | ||
| 270 | cmd = ['gpg', '--import'] | 270 | cmd = ['gpg', '--import'] |
| 271 | try: | 271 | try: |
| @@ -383,8 +383,8 @@ def _Verify(cwd, branch, quiet): | |||
| 383 | % (branch, cur) | 383 | % (branch, cur) |
| 384 | print >>sys.stderr | 384 | print >>sys.stderr |
| 385 | 385 | ||
| 386 | env = dict(os.environ) | 386 | env = os.environ.copy() |
| 387 | env['GNUPGHOME'] = gpg_dir | 387 | env['GNUPGHOME'] = gpg_dir.encode() |
| 388 | 388 | ||
| 389 | cmd = [GIT, 'tag', '-v', cur] | 389 | cmd = [GIT, 'tag', '-v', cur] |
| 390 | proc = subprocess.Popen(cmd, | 390 | proc = subprocess.Popen(cmd, |
| @@ -488,6 +488,7 @@ def _Help(args): | |||
| 488 | if args: | 488 | if args: |
| 489 | if args[0] == 'init': | 489 | if args[0] == 'init': |
| 490 | init_optparse.print_help() | 490 | init_optparse.print_help() |
| 491 | sys.exit(0) | ||
| 491 | else: | 492 | else: |
| 492 | print >>sys.stderr,\ | 493 | print >>sys.stderr,\ |
| 493 | "error: '%s' is not a bootstrap command.\n"\ | 494 | "error: '%s' is not a bootstrap command.\n"\ |
