Copy repository settings

This commit is contained in:
Manuel Thalmann 2024-07-26 14:43:02 +02:00
parent 95bfa52280
commit f631377a86

View file

@ -3,6 +3,7 @@ begin
set -l target "$argv[1]" set -l target "$argv[1]"
set -l dir "$(status dirname)/.." set -l dir "$(status dirname)/.."
git clone "$dir" "$target" git clone "$dir" "$target"
cp "$dir/.git/config" "$target/.git/config"
git -C "$dir" diff HEAD | git -C "$target" apply --allow-empty &> /dev/null git -C "$dir" diff HEAD | git -C "$target" apply --allow-empty &> /dev/null
and git -C "$dir" ls-files --exclude-standard --others | \ and git -C "$dir" ls-files --exclude-standard --others | \