[Xfce4-commits] <xfce-git-hooks:master> Try relocating to the working copies before pulling.

Jannis Pohlmann noreply at xfce.org
Mon May 24 00:12:01 CEST 2010


Updating branch refs/heads/master
         to deb0f8f0f314cdbfa2ffdb9b3285fd60ffe7d98e (commit)
       from 2d6a0591ea77188b5a1f3d9f61d56d9443bec614 (commit)

commit deb0f8f0f314cdbfa2ffdb9b3285fd60ffe7d98e
Author: Jannis Pohlmann <jannis at xfce.org>
Date:   Mon May 24 00:09:58 2010 +0200

    Try relocating to the working copies before pulling.

 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 a77d66f..a490601 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 --rebase
+    pushd /var/www/wiki.xfce.org &&
+    git pull --rebase &&
+    popd
     ;;
 
   www/www.xfce.org)
-    GIT_DIR=/var/www/www.xfce.org/.git git pull --rebase
+    pushd /var/www/www.xfce.org &&
+    git pull --rebase &&
+    popd
     ;;
 esac



More information about the Xfce4-commits mailing list