Git-Auto-Deploy icon indicating copy to clipboard operation
Git-Auto-Deploy copied to clipboard

Fix clone git unset on windows

Open drsaluml opened this issue 7 years ago • 0 comments

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')

drsaluml avatar Jul 08 '17 17:07 drsaluml