Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6b6810d

Browse files
committed
WOrkaround for cwd bug on pull
1 parent ad715a0 commit 6b6810d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

git/cmd.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,9 @@ def execute(self, command,
341341
cwd = os.getcwd()
342342
else:
343343
cwd=self._working_dir
344+
345+
if command[1] == 'pull':
346+
cwd += '/.git'
344347

345348
# Start the process
346349
env = os.environ.copy()

0 commit comments

Comments
 (0)