Mercurial > kallithea
changeset 2616:bab7eaa2cd7d beta
Remove GIT_DIT from environ on calling git_command, it can break a lot of stuff
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 16 Jul 2012 02:24:10 +0200 |
parents | 6f44b6d5aa60 |
children | c0ec29b20eb6 |
files | rhodecode/lib/vcs/backends/git/repository.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/lib/vcs/backends/git/repository.py Mon Jul 16 00:40:34 2012 +0200 +++ b/rhodecode/lib/vcs/backends/git/repository.py Mon Jul 16 02:24:10 2012 +0200 @@ -96,6 +96,9 @@ _str_cmd = True gitenv = os.environ + # need to clean fix GIT_DIR ! + if 'GIT_DIR' in gitenv: + del gitenv['GIT_DIR'] gitenv['GIT_CONFIG_NOGLOBAL'] = '1' cmd = ['git'] + _copts + cmd