From 569bef72896a2d8ba6bccd4b1017ded232c9b4c9 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 6 Jan 2025 03:55:08 +0300 Subject: [PATCH] Stop running `chmod a-x .git/config`, Git no longer requires it --- clone | 4 +--- fix-config | 4 ---- fix-config-recursive | 4 ---- fix-config-repos | 7 ------- fork | 1 - 5 files changed, 1 insertion(+), 19 deletions(-) delete mode 100755 fix-config delete mode 100755 fix-config-recursive delete mode 100755 fix-config-repos 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 && -- 2.39.5