Skip to content

Commit

Permalink
check if base_commit equals reviewed_commit
Browse files Browse the repository at this point in the history
  • Loading branch information
milahu committed May 13, 2022
1 parent 09abf9c commit 6fe1fee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nixpkgs_review/review.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ def build_commit(
"""
Review a local git commit
"""
if base_commit == reviewed_commit:
print(f"error: nothing to compare. base_commit == reviewed_commit == {reviewed_commit}")
sys.exit(1)
self.git_worktree(base_commit)
base_packages = list_packages(str(self.worktree_dir()), self.system)

Expand Down

0 comments on commit 6fe1fee

Please sign in to comment.