diff --git a/inspector/repo.py b/inspector/repo.py index 8f07411..92f6962 100644 --- a/inspector/repo.py +++ b/inspector/repo.py @@ -40,10 +40,10 @@ def push_path(path: str | os.PathLike, msg: str): repo = get_repo() changes = repo.untracked_files + repo.index.diff(None) if changes: - origin = repo.remote(name="origin") - origin.pull(strategy_option="ours") repo.index.add(path) repo.index.commit(msg) + origin = repo.remote(name="origin") + origin.pull(strategy_option="ours") origin.push()