[Xfce4-commits] <xfce-git-hooks:master> Without variable.

Nick Schermer noreply at xfce.org
Sun Nov 7 19:22:01 CET 2010


Updating branch refs/heads/master
         to c3e4892634ace23c208e7d6621a5b6cf3695a8c9 (commit)
       from 7423cdac60610dbc74239f61f94967a20cf230ac (commit)

commit c3e4892634ace23c208e7d6621a5b6cf3695a8c9
Author: Nick Schermer <nick at xfce.org>
Date:   Sun Nov 7 19:19:53 2010 +0100

    Without variable.

 hooks/post-update-03-www-pull |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/hooks/post-update-03-www-pull b/hooks/post-update-03-www-pull
index 2446dbd..b25efd2 100755
--- a/hooks/post-update-03-www-pull
+++ b/hooks/post-update-03-www-pull
@@ -2,14 +2,12 @@
 
 case "$REPO" in
   www/wiki.xfce.org)
-    path=/var/www/wiki.xfce.org
-    git --git-dir=$path/.git --work-tree=$path pull
-    git --git-dir=$path/.git --work-tree=$path checkout .
+    git --git-dir=/var/www/wiki.xfce.org/.git --work-tree=/var/www/wiki.xfce.org pull
+    git --git-dir=/var/www/wiki.xfce.org/.git --work-tree=/var/www/wiki.xfce.org checkout .
     ;;
 
   www/www.xfce.org)
-    path=/var/www/www.xfce.org
-    git --git-dir=$path/.git --work-tree=$path pull
-    git --git-dir=$path/.git --work-tree=$path checkout .
+    git --git-dir=/var/www/www.xfce.org/.git --work-tree=/var/www/www.xfce.org pull
+    git --git-dir=/var/www/www.xfce.org/.git --work-tree=/var/www/www.xfce.org checkout .
     ;;
 esac



More information about the Xfce4-commits mailing list