Git-Auto-Deploy
Git-Auto-Deploy copied to clipboard
Fix clone git unset on windows
Git-Auto-Deploy/gitautodeploy/wrappers/git.py
find
commands.append('unset GIT_DIR')
modify
# On Windows, bash command needs to be run using bash.exe. This assumes bash.exe
# (typically installed under C:\Program Files\Git\bin) is in the system PATH.
if platform.system().lower() == "windows":
commands.append('bash -c "cd \\"' + repo_config['path'] + '\\" && unset GIT_DIR"')
else:
commands.append('unset GIT_DIR')