summaryrefslogtreecommitdiffstats
path: root/repo
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2011-01-09 17:29:50 -0800
committerShawn O. Pearce <sop@google.com>2011-01-09 17:29:50 -0800
commit71cab95b4cc6758d5f18f19412188d46d0a29190 (patch)
tree0699635c5d912ea523747be299766f5cab9180b3 /repo
parent9275fd43294e760e47736857113f32a2f189c6c6 (diff)
parentf18cb761731a791bf1b9ee8c6308bfce5c9d3e62 (diff)
downloadgit-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-xrepo9
1 files changed, 5 insertions, 4 deletions
diff --git a/repo b/repo
index cb6f6349..e570a0b4 100755
--- a/repo
+++ b/repo
@@ -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"\