1
1
Fork 0
mirror of https://github.com/pbatard/rufus.git synced 2024-08-14 23:57:05 +00:00

[internal] add auto detection of 'git commit --amend'

* Finally!
* Also improve UPX compression
This commit is contained in:
Pete Batard 2018-05-12 11:37:07 +01:00
parent 9815a18009
commit 63555cd04d
7 changed files with 33 additions and 11 deletions

View file

@ -6,12 +6,16 @@
# .git/hooks/ with the following content:
# #!/bin/sh
# if [ -x ./_pre-commit.sh ]; then
# source ./_pre-commit.sh
# . ./_pre-commit.sh
# fi
type -P sed &>/dev/null || { echo "sed command not found. Aborting." >&2; exit 1; }
type -P git &>/dev/null || { echo "git command not found. Aborting." >&2; exit 1; }
if [ -x ./_detect-amend.sh ]; then
. ./_detect-amend.sh
fi
TAGVER=`git rev-list HEAD --count`
# adjust so that we match the github commit count
((TAGVER++))