From: Joey Hess Date: Sat, 17 Jan 2009 20:01:23 +0000 (-0500) Subject: turn off auto gc X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/2b5fbf08dab8d43d1e9487416cf4d5f2007aba73?ds=inline turn off auto gc --- diff --git a/debian/changelog b/debian/changelog index 1e807b0..d636dfb 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,6 @@ mr (0.37) UNRELEASED; urgency=low - * Add git-remote file to lib. + * Add "gitless" file to lib. This adds a special type of git repository, where the .git directory is stored on a file server, to avoid wasting space with it on the client. diff --git a/lib/gitless b/lib/gitless index 334326e..e686e58 100644 --- a/lib/gitless +++ b/lib/gitless @@ -28,6 +28,7 @@ lib = hostname="$(hostname)" if [ "$hostname" = "$server" ]; then git clone "$dir.git" "$dir" + cd "$dir" else if [ ! -d "$remotebase/$dir.$hostname" ]; then git clone --no-checkout "$remotebase/$dir.git" "$remotebase/$dir.$hostname" @@ -37,4 +38,8 @@ lib = ln -sf "$remotebase/$dir.$hostname/.git" git reset --hard fi + + # disable auto gc, because it breaks repo hard links, + # and is not smart to run over a networked filesystem + git config gc.auto 0 }