Merge branch 'zenix/hm-cosmic' into nixbook/cosmic

This commit is contained in:
tristan 2024-10-15 19:48:13 +01:00
commit 70e6d7ced5
12 changed files with 199 additions and 34 deletions

View file

@ -9,11 +9,18 @@
bclone = "!sh ${pkgs.writeShellScriptBin "bare-clone" ''
url=$1
basename=''${url##*/}
name=''${2:-''${basename%.*}}
if [[ $2 == -* ]]
then
opts=''${@:2}
name=''${basename%.*}
else
opts=''${@:3}
name=''${2:-''${basename%.*}}
fi
mkdir "$name"
git clone --bare "$url" "$name/.bare" || {
git clone --bare "$url" "$name/.bare" $opts || {
rm -r "$name"
exit 1
}
@ -23,7 +30,7 @@
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
git fetch origin
git fetch origin $opts
''}/bin/bare-clone";
};
difftastic = {