From: R. Steve McKown Date: Thu, 14 Jan 2010 22:55:49 +0000 (-0700) Subject: Public repositories get URL metadata via creation of cloneurl file. X-Git-Url: https://oss.titaniummirror.com/gitweb?p=git-utils.git;a=commitdiff_plain;h=bb0479526e419e1f61207daf6bea59132cec8459 Public repositories get URL metadata via creation of cloneurl file. --- diff --git a/git-push-public b/git-push-public index 559f609..4a190dc 100755 --- a/git-push-public +++ b/git-push-public @@ -20,6 +20,8 @@ for path in $(find . -name git-daemon-export-ok); do ssh $PUBLICSERVER git --git-dir=$PUBLICBASE/$repo init --bare ssh $PUBLICSERVER touch $PUBLICBASE/$repo/git-daemon-export-ok scp $repo/description $PUBLICSERVER:$PUBLICBASE/$repo/ + ssh $PUBLICSERVER "echo \"git://$PUBLICSERVER/$repo\" \ + > $PUBLICBASE/$repo/cloneurl" fi git --git-dir=$repo push --mirror $PUBLICSERVER:$PUBLICBASE/$repo done