X-Git-Url: https://git.madduck.net/code/myrepos.git/blobdiff_plain/dbe77fe58d391470cc4955ac1015aefbf8df2bcb..2b5fbf08dab8d43d1e9487416cf4d5f2007aba73:/lib/gitless 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 }