diff options
| author | Shawn O. Pearce <sop@google.com> | 2011-01-09 17:29:50 -0800 |
|---|---|---|
| committer | Shawn O. Pearce <sop@google.com> | 2011-01-09 17:29:50 -0800 |
| commit | 71cab95b4cc6758d5f18f19412188d46d0a29190 (patch) | |
| tree | 0699635c5d912ea523747be299766f5cab9180b3 /repo | |
| parent | 9275fd43294e760e47736857113f32a2f189c6c6 (diff) | |
| parent | f18cb761731a791bf1b9ee8c6308bfce5c9d3e62 (diff) | |
| download | git-repo-71cab95b4cc6758d5f18f19412188d46d0a29190.tar.gz | |
Merge branch 'stable'
* stable:
Encode the environment variables passed to git
Exit with statuscode 0 for repo help init
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"\ |
