diff options
Diffstat (limited to 'git-hooks/auto-deploy')
-rwxr-xr-x | git-hooks/auto-deploy | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/git-hooks/auto-deploy b/git-hooks/auto-deploy index 0480756..02a22e7 100755 --- a/git-hooks/auto-deploy +++ b/git-hooks/auto-deploy @@ -8,9 +8,9 @@ set -e # Can we write on the clone? test -w "${1}/.git/HEAD" -# pull this repo -git --git-dir "${1}/.git" \ - --work-tree "${1}" \ - pull origin master +alias git="git --git-dir '${1}/.git' --work-tree '${1}'" + +# pull this repo on the current branch +git pull origin $(git rev-parse --abbrev-ref HEAD) exit $? |