forked from firehol/firehol
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix hooks to work with older branches
- Loading branch information
1 parent
2f0460b
commit 8b472fd
Showing
3 changed files
with
10 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,6 @@ | |
if [ -x ./packaging/update-tags ] | ||
then | ||
exec git diff HEAD^ | ./packaging/update-tags - | ||
else | ||
exit 0 | ||
fi |
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 |
---|---|---|
|
@@ -2,4 +2,6 @@ | |
if [ -x ./packaging/check-files ] | ||
then | ||
exec git diff --cached | ./packaging/check-files - | ||
else | ||
exit 0 | ||
fi |
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 |
---|---|---|
@@ -1,2 +1,7 @@ | ||
#!/bin/sh | ||
test -x ./packaging/release-msg && exec ./packaging/release-msg "$@" | ||
if [ -x ./packaging/release-msg ] | ||
then | ||
exec ./packaging/release-msg "$@" | ||
else | ||
exit 0 | ||
fi |