X-Git-Url: https://git.madduck.net/code/myrepos.git/blobdiff_plain/dbe77fe58d391470cc4955ac1015aefbf8df2bcb..57a63d4062e8853488d218b84e56dc6d8060678d:/lib/gitless?ds=inline 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 }