]> git.phdru.name Git - git-scripts.git/commitdiff
Fix(reinit-repos): Run `git init --bare` to reinit bare repos
authorOleg Broytman <phd@phdru.name>
Sat, 9 Oct 2021 12:28:08 +0000 (15:28 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 9 Oct 2021 12:28:08 +0000 (15:28 +0300)
reinit-recursive [deleted file]
reinit-repos

diff --git a/reinit-recursive b/reinit-recursive
deleted file mode 100755 (executable)
index eddb651..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-#! /bin/sh
-
-prog_dir="`dirname \"$0\"`" &&
-exec "$prog_dir"/run-recursive git init
index 575bf94c876563207ad83ec901cfa980f39babab..a7596916c12977225cb9d971f6c49278e2fde5d3 100755 (executable)
@@ -3,4 +3,5 @@
 cd "`dirname \"$0\"`" &&
 prog_dir="`pwd`" &&
 
-exec "$prog_dir"/run-repos "$prog_dir"/reinit-recursive
+"$prog_dir"/run-workdirs "$prog_dir"/run-recursive git init &&
+exec "$prog_dir"/run-bare-repos git init --bare