diff options
Diffstat (limited to 'subcmds/sync.py')
-rw-r--r-- | subcmds/sync.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py index 7b77388b..16f1d189 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
@@ -271,7 +271,7 @@ uncommitted changes are present' % project.relpath | |||
271 | if branch.startswith(R_HEADS): | 271 | if branch.startswith(R_HEADS): |
272 | branch = branch[len(R_HEADS):] | 272 | branch = branch[len(R_HEADS):] |
273 | 273 | ||
274 | env = dict(os.environ) | 274 | env = os.environ.copy() |
275 | if (env.has_key('TARGET_PRODUCT') and | 275 | if (env.has_key('TARGET_PRODUCT') and |
276 | env.has_key('TARGET_BUILD_VARIANT')): | 276 | env.has_key('TARGET_BUILD_VARIANT')): |
277 | target = '%s-%s' % (env['TARGET_PRODUCT'], | 277 | target = '%s-%s' % (env['TARGET_PRODUCT'], |
@@ -428,9 +428,9 @@ warning: Cannot automatically authenticate repo.""" | |||
428 | % (project.name, rev) | 428 | % (project.name, rev) |
429 | return False | 429 | return False |
430 | 430 | ||
431 | env = dict(os.environ) | 431 | env = os.environ.copy() |
432 | env['GIT_DIR'] = project.gitdir | 432 | env['GIT_DIR'] = project.gitdir.encode() |
433 | env['GNUPGHOME'] = gpg_dir | 433 | env['GNUPGHOME'] = gpg_dir.encode() |
434 | 434 | ||
435 | cmd = [GIT, 'tag', '-v', cur] | 435 | cmd = [GIT, 'tag', '-v', cur] |
436 | proc = subprocess.Popen(cmd, | 436 | proc = subprocess.Popen(cmd, |