mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-27 13:14:26 -04:00
[internal] added post-commit hook for autotagging
This commit is contained in:
parent
1b20310395
commit
651cdcaa65
3 changed files with 21 additions and 11 deletions
13
_post-commit.sh
Normal file
13
_post-commit.sh
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Creates a tag according to the number of commits on this branch
|
||||
#
|
||||
# To have git run this script on commit, create a "post-commit" text file in
|
||||
# .git/hooks/ with the following content:
|
||||
# #!/bin/sh
|
||||
# source ./_post-commit.sh
|
||||
|
||||
type -P git &>/dev/null || { echo "git command not found. Aborting." >&2; exit 1; }
|
||||
|
||||
TAGVER=`cat .tag`
|
||||
git tag "#$TAGVER"
|
Loading…
Add table
Add a link
Reference in a new issue