diff options
Diffstat (limited to 'git_command.py')
| -rw-r--r-- | git_command.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/git_command.py b/git_command.py index a40e6c05..39f795ff 100644 --- a/git_command.py +++ b/git_command.py | |||
| @@ -132,15 +132,15 @@ class GitCommand(object): | |||
| 132 | gitdir = None): | 132 | gitdir = None): |
| 133 | env = os.environ.copy() | 133 | env = os.environ.copy() |
| 134 | 134 | ||
| 135 | for e in [REPO_TRACE, | 135 | for key in [REPO_TRACE, |
| 136 | GIT_DIR, | 136 | GIT_DIR, |
| 137 | 'GIT_ALTERNATE_OBJECT_DIRECTORIES', | 137 | 'GIT_ALTERNATE_OBJECT_DIRECTORIES', |
| 138 | 'GIT_OBJECT_DIRECTORY', | 138 | 'GIT_OBJECT_DIRECTORY', |
| 139 | 'GIT_WORK_TREE', | 139 | 'GIT_WORK_TREE', |
| 140 | 'GIT_GRAFT_FILE', | 140 | 'GIT_GRAFT_FILE', |
| 141 | 'GIT_INDEX_FILE']: | 141 | 'GIT_INDEX_FILE']: |
| 142 | if e in env: | 142 | if key in env: |
| 143 | del env[e] | 143 | del env[key] |
| 144 | 144 | ||
| 145 | if disable_editor: | 145 | if disable_editor: |
| 146 | _setenv(env, 'GIT_EDITOR', ':') | 146 | _setenv(env, 'GIT_EDITOR', ':') |
