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

commit ed8dfcfcd448abe8e89e43749380a3c768d58113
Author: Miklos Vajna <[EMAIL PROTECTED]>
Date:   Sat May 31 17:59:51 2008 +0200

tools/gitpull: remove old branches on update

diff --git a/tools/gitpull b/tools/gitpull
index beb92c3..4c5a9ba 100755
--- a/tools/gitpull
+++ b/tools/gitpull
@@ -10,10 +10,12 @@ do
if [ -d $i.git ]; then
cd $i.git
git fetch -q origin
+               git remote prune origin
else
-               git clone --bare -q $giturl $i.git
+               mkdir $i.git
cd $i.git
-               git remote add --mirror origin $giturl
+               git --bare init
+               git remote add -f --mirror origin $giturl
fi
cd ..
rsync $server/$i/.git/owner $i.git/
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to