Skip to content

Commit

Permalink
Add useful output
Browse files Browse the repository at this point in the history
  • Loading branch information
Yang-33 committed Nov 21, 2024
1 parent f4ebfe5 commit 5eb82cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/update_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ def update_and_verify_version(new_version):

print('Git diff verification passed: 1 line added and 1 line deleted.')

# Show diff
diff_result = subprocess.run(['git', 'diff', '--color=always', file_path], capture_output=True, text=True, check=True)
print('Git diff output:\n', diff_result.stdout)

except subprocess.CalledProcessError as e:
print(f"Error during git diff verification: {e}")
sys.exit(1)
Expand Down

0 comments on commit 5eb82cd

Please sign in to comment.