diff options
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/misc/vim-plugins/update.py')
-rwxr-xr-x | infra/libkookie/nixpkgs/pkgs/misc/vim-plugins/update.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/misc/vim-plugins/update.py b/infra/libkookie/nixpkgs/pkgs/misc/vim-plugins/update.py index b9bab293a797..f5d7434fe272 100755 --- a/infra/libkookie/nixpkgs/pkgs/misc/vim-plugins/update.py +++ b/infra/libkookie/nixpkgs/pkgs/misc/vim-plugins/update.py @@ -503,9 +503,9 @@ def parse_args(): def commit(repo: git.Repo, message: str, files: List[Path]) -> None: - files_staged = repo.index.add([str(f.resolve()) for f in files]) + repo.index.add([str(f.resolve()) for f in files]) - if files_staged: + if repo.index.diff("HEAD"): print(f'committing to nixpkgs "{message}"') repo.index.commit(message) else: |