robust update patch
This commit is contained in:
8
scripts/update-fix.py
Normal file
8
scripts/update-fix.py
Normal file
@@ -0,0 +1,8 @@
|
||||
import git
|
||||
|
||||
repo_path = "."
|
||||
if repo.is_dirty():
|
||||
repo.git.stash()
|
||||
|
||||
repo = git.Repo(repo_path)
|
||||
repo.git.pull(rebase=True)
|
||||
Reference in New Issue
Block a user