Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=bbc973f8f9834a6a43833fde43977260a05dd755

commit bbc973f8f9834a6a43833fde43977260a05dd755
Author: VMiklos <[EMAIL PROTECTED]>
Date:   Fri Sep 28 23:57:18 2007 +0200

tools/gitpull: make use of git remote's new --mirror switch
it results in some cleanup

diff --git a/tools/gitpull b/tools/gitpull
index a22796d..53bcadc 100755
--- a/tools/gitpull
+++ b/tools/gitpull
@@ -9,14 +9,12 @@ do
if [ -d $i.git ]; then
cd $i.git
git fetch -q origin
-               git update-ref HEAD refs/remotes/origin/master
else
git clone --bare -q $server/$i/.git $i.git
cd $i.git
-               git remote add origin $server/$i/.git
+               git remote add --mirror origin $server/$i/.git
fi
cd ..
-       rm -rf $i.git/refs/remotes
rsync $server/$i/.git/owner $i.git/
rsync $server/$i/.git/description $i.git/
echo "Anonymous Access: http://git.frugalware.org/repos/$i/.git"; > 
$i.git/cloneurl
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to