-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add pre-commit step to replace lock-api-state.sh, which ensures that
there are no buf image changes to commit. This was formerly run by rph at the beginning of a release.
- Loading branch information
1 parent
9faa0cb
commit a75e9e0
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
|
||
# Regenerate proto/buf.image.bin | ||
make -C proto gen-buf-image | ||
|
||
# If proto/buf.image.bin has been modified locally, then we have changes to | ||
# commit, and the status check returns a 1 and fails. Otherwise, it returns a 0 | ||
# and succeeds. | ||
git diff --exit-code -- proto/buf.image.bin | ||
exit $? |