From 4eb2cd7eadf0f70bf0e88d2356bff037314885ff Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 22 Jan 2009 02:54:34 -0500 Subject: [PATCH 1/1] gitless: Use --shared when cloning repos, avoids problems with hard links etc. --- debian/changelog | 7 +++++++ lib/gitless | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index d9bd2a8..ccc021d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +mr (0.38) UNRELEASED; urgency=low + + * gitless: Use --shared when cloning repos, avoids problems with hard links + etc. + + -- Joey Hess Thu, 22 Jan 2009 02:54:12 -0500 + mr (0.37) unstable; urgency=low * Add "gitless" file to lib. diff --git a/lib/gitless b/lib/gitless index e686e58..20c2e5e 100644 --- a/lib/gitless +++ b/lib/gitless @@ -31,7 +31,7 @@ lib = cd "$dir" else if [ ! -d "$remotebase/$dir.$hostname" ]; then - git clone --no-checkout "$remotebase/$dir.git" "$remotebase/$dir.$hostname" + git clone --shared --no-checkout "$remotebase/$dir.git" "$remotebase/$dir.$hostname" fi mkdir -p "$dir" cd "$dir" -- 2.39.5