From 8c0ba8357e629cc2eaef1d551618d14ac15b6493 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Reynolds?= Date: Wed, 14 Aug 2013 12:19:36 -0300 Subject: Deploy current branch --- git-hooks/auto-deploy | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'git-hooks/auto-deploy') 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 $? -- cgit v1.2.3-2-g168b