From 19b421a38d668f7aa177e45daf2e0a2e2b4433d3 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Fri, 27 Apr 2007 03:10:00 +0200 Subject: [PATCH] Use git-mirror instead of git-fetch --mirror-all --- clone.sh | 1 + update.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/clone.sh b/clone.sh index 48c1aec..3b7e0d9 100755 --- a/clone.sh +++ b/clone.sh @@ -43,6 +43,7 @@ bang mv repodir /srv/git/"$proj".git bang chmod g+w base_url owner description homepage README.html bang mv base_url owner description homepage README.html /srv/git/"$proj".git/ #bang mv objects/info/alternates /srv/git/"$proj".git/objects/info/alternates # git clone should've set up that for us +GIT_DIR=/srv/git/"$proj".git bang git config --bool --add mirror.allowed true GIT_DIR=/srv/git/"$proj".git bang git update-server-info cd .. && rm -r "$proj" # NO bang AT THIS POINT! rm -r depends on cwd. diff --git a/update.sh b/update.sh index b229385..24be746 100755 --- a/update.sh +++ b/update.sh @@ -22,7 +22,7 @@ bang() { fi } -GIT_DIR=. bang git fetch -f -u -k --mirror-all "$url" +GIT_DIR=. bang git mirror "$url" [ "$(ls objects/??/* 2>/dev/null)" ] && GIT_DIR=. bang git repack -a -d GIT_DIR=. bang git update-server-info date --rfc >.last_refresh -- 2.11.4.GIT