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 d6ea442a..80bba1aa 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
| @@ -269,7 +269,7 @@ uncommitted changes are present' % project.relpath | |||
| 269 | if branch.startswith(R_HEADS): | 269 | if branch.startswith(R_HEADS): |
| 270 | branch = branch[len(R_HEADS):] | 270 | branch = branch[len(R_HEADS):] |
| 271 | 271 | ||
| 272 | env = dict(os.environ) | 272 | env = os.environ.copy() |
| 273 | if (env.has_key('TARGET_PRODUCT') and | 273 | if (env.has_key('TARGET_PRODUCT') and |
| 274 | env.has_key('TARGET_BUILD_VARIANT')): | 274 | env.has_key('TARGET_BUILD_VARIANT')): |
| 275 | target = '%s-%s' % (env['TARGET_PRODUCT'], | 275 | target = '%s-%s' % (env['TARGET_PRODUCT'], |
| @@ -413,9 +413,9 @@ warning: Cannot automatically authenticate repo.""" | |||
| 413 | % (project.name, rev) | 413 | % (project.name, rev) |
| 414 | return False | 414 | return False |
| 415 | 415 | ||
| 416 | env = dict(os.environ) | 416 | env = os.environ.copy() |
| 417 | env['GIT_DIR'] = project.gitdir | 417 | env['GIT_DIR'] = project.gitdir.encode() |
| 418 | env['GNUPGHOME'] = gpg_dir | 418 | env['GNUPGHOME'] = gpg_dir.encode() |
| 419 | 419 | ||
| 420 | cmd = [GIT, 'tag', '-v', cur] | 420 | cmd = [GIT, 'tag', '-v', cur] |
| 421 | proc = subprocess.Popen(cmd, | 421 | proc = subprocess.Popen(cmd, |
