]> git.phdru.name Git - git-scripts.git/commitdiff
Stop running `chmod a-x .git/config`, Git no longer requires it
authorOleg Broytman <phd@phdru.name>
Mon, 6 Jan 2025 00:55:08 +0000 (03:55 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 6 Jan 2025 00:55:08 +0000 (03:55 +0300)
clone
fix-config [deleted file]
fix-config-recursive [deleted file]
fix-config-repos [deleted file]
fork

diff --git a/clone b/clone
index 5d1118d62b305add331d5642f0a8d8f86ebfa6c2..58d898c2f921c02b175778d5d67a10fa894ac278 100755 (executable)
--- 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 (executable)
index f7d4cda..0000000
+++ /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 (executable)
index afbe197..0000000
+++ /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 (executable)
index da5e46e..0000000
+++ /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 51883568272ae6cd3ff03149663e0dacf0217c6f..cbf5d9a8571ccc4bd0c851cc3aba0de76fd361db 100755 (executable)
--- 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 &&