]> git.armaanb.net Git - bin.git/commitdiff
git-mirror: regenerate index on every run
authorArmaan Bhojwani <me@armaanb.net>
Fri, 9 Apr 2021 18:38:42 +0000 (14:38 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Fri, 9 Apr 2021 18:38:42 +0000 (14:38 -0400)
git-mirror

index ebde74b774e62de9abde66c4d7f6b7c3fa04c667..d9864184162c3bdfc624ffa8ea009162c736aa37 100755 (executable)
@@ -19,9 +19,10 @@ run() {
   cd ${1}
 
   [ -d ${3} ] || mkdir ${3}
-  cd ${3} && stagit-index ${1}/*
+  cd ${3}
 
   while :; do
+    stagit-index ${1}/*
     find "$1" -name '*.git' -type d | \
       while read dir; do
         newdir=${3}/$(basename ${dir} .git)