Skip to content

Commit 70e505a

Browse files
authored
Replace git pull command
Old version is no longer allowed
1 parent fe1e147 commit 70e505a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎install/gitstrap.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,8 @@ def update(self, op_code, cur_count, max_count=None, message=''):
352352
logmsg(msg)
353353
print(msg)
354354
if not forceupdate: raise UserWarning(msg)
355-
g2repo.remotes.origin.pull(f'--depth={depth}')
355+
#g2repo.remotes.origin.pull(f'--depth={depth}') # replaced with following, as recommended by copilot
356+
g2repo.git.pull('origin', depth=depth)
356357
return True
357358
elif os.listdir(repo_path):
358359
msg = f'directory {repo_path} is not empty and is not used by git'

0 commit comments

Comments
 (0)