Skip to content

Commit

Permalink
Try to avoid conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
bra-fsn committed Sep 4, 2024
1 parent 9dfdefc commit b67f84d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions inspector/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ def get_repo(repo_url=REPO_URL, repo_path=REPO_PATH):
@synchronized
def push_path(path: str | os.PathLike, msg: str):
repo = get_repo()
repo.index.add(path)
changes = repo.index.diff("HEAD")
changes = repo.untracked_files + repo.index.diff(None)
if len(changes):
repo.index.commit(msg)
origin = repo.remote(name="origin")
origin.pull(rebase=True)
origin.pull(rebase=True, strategy_option='theirs')
repo.index.add(path)
repo.index.commit(msg)
origin.push()


Expand Down

0 comments on commit b67f84d

Please sign in to comment.