From 2b5fbf08dab8d43d1e9487416cf4d5f2007aba73 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 17 Jan 2009 15:01:23 -0500 Subject: [PATCH] turn off auto gc --- debian/changelog | 2 +- lib/gitless | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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 } -- 2.39.5