mirror of https://github.com/pbatard/rufus.git
Browse Source
[internal] update hooks to remove automated tagging
[internal] update hooks to remove automated tagging
* Also update AppVeyor builds wrt the abovepull/1231/head

5 changed files with 16 additions and 54 deletions
-
19_post-commit.sh
-
20_pre-commit.sh
-
10_set_git_hooks.sh
-
11appveyor.yml
-
10src/rufus.rc
@ -1,19 +0,0 @@ |
|||
#!/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 |
|||
# if [ -x ./_post-commit.sh ]; then |
|||
# . ./_post-commit.sh |
|||
# fi |
|||
|
|||
type -P git &>/dev/null || { echo "git command not found. Aborting." >&2; exit 1; } |
|||
|
|||
TAGVER=`cat ./.tag` |
|||
# Only apply a tag if we're dealing with the master branch |
|||
if [ "`git rev-parse --abbrev-ref HEAD`" == "master" ]; then |
|||
git tag "b$TAGVER" |
|||
fi |
|||
rm ./.tag |
Write
Preview
Loading…
Cancel
Save
Reference in new issue