From: Oleg Broytman Date: Mon, 6 Jan 2025 00:55:08 +0000 (+0300) Subject: Stop running `chmod a-x .git/config`, Git no longer requires it X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=569bef72896a2d8ba6bccd4b1017ded232c9b4c9;p=git-scripts.git Stop running `chmod a-x .git/config`, Git no longer requires it --- diff --git a/clone b/clone index 5d1118d..58d898c 100755 --- a/clone +++ b/clone @@ -16,9 +16,7 @@ fi && if [ -d .git ]; then git remote set-url origin "$origin" else - git clone -o origin "$origin" "$local_repo" && - cd "$local_repo" && - chmod a-x .git/config + git clone -o origin "$origin" "$local_repo" fi && "`dirname \"$0\"`"/set-commit-date-recursive && diff --git a/fix-config b/fix-config deleted file mode 100755 index f7d4cda..0000000 --- a/fix-config +++ /dev/null @@ -1,4 +0,0 @@ -#! /bin/sh - -g="`git rev-parse --git-dir`" && -exec chmod a-x "$g"/config diff --git a/fix-config-recursive b/fix-config-recursive deleted file mode 100755 index afbe197..0000000 --- a/fix-config-recursive +++ /dev/null @@ -1,4 +0,0 @@ -#! /bin/sh - -prog_dir="`dirname \"$0\"`" && -exec "$prog_dir"/run-recursive "$prog_dir"/fix-config diff --git a/fix-config-repos b/fix-config-repos deleted file mode 100755 index da5e46e..0000000 --- a/fix-config-repos +++ /dev/null @@ -1,7 +0,0 @@ -#! /bin/sh - -cd "`dirname \"$0\"`" && -prog_dir="`pwd`" && -export prog_dir - -exec "$prog_dir"/run-repos "$prog_dir"/fix-config-recursive diff --git a/fork b/fork index 5188356..cbf5d9a 100755 --- a/fork +++ b/fork @@ -20,7 +20,6 @@ if [ -d .git ]; then else git clone -o upstream "$upstream" "$local_repo" && cd "$local_repo" && - chmod a-x .git/config && git remote add origin "$origin" fi &&