[Xfce4-commits] <xfce-git-hooks:master> Another try at fixing the www hook.
Nick Schermer
noreply at xfce.org
Sun Nov 7 19:18:01 CET 2010
Updating branch refs/heads/master
to 7423cdac60610dbc74239f61f94967a20cf230ac (commit)
from 2ffaf69288b6663e651f25ab83971904f4dff400 (commit)
commit 7423cdac60610dbc74239f61f94967a20cf230ac
Author: Nick Schermer <nick at xfce.org>
Date: Sun Nov 7 19:16:12 2010 +0100
Another try at fixing the www hook.
hooks/post-update-03-www-pull | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/hooks/post-update-03-www-pull b/hooks/post-update-03-www-pull
index 8dd253b..2446dbd 100755
--- a/hooks/post-update-03-www-pull
+++ b/hooks/post-update-03-www-pull
@@ -2,10 +2,14 @@
case "$REPO" in
www/wiki.xfce.org)
- GIT_DIR=/var/www/wiki.xfce.org/.git git pull
+ path=/var/www/wiki.xfce.org
+ git --git-dir=$path/.git --work-tree=$path pull
+ git --git-dir=$path/.git --work-tree=$path checkout .
;;
www/www.xfce.org)
- GIT_DIR=/var/www/www.xfce.org/.git git pull
+ path=/var/www/www.xfce.org
+ git --git-dir=$path/.git --work-tree=$path pull
+ git --git-dir=$path/.git --work-tree=$path checkout .
;;
esac
More information about the Xfce4-commits
mailing list