]> git.armaanb.net Git - bin.git/commitdiff
git-mirror: fix git running in the wrong directory
authorArmaan Bhojwani <me@armaanb.net>
Sat, 6 Mar 2021 01:11:08 +0000 (20:11 -0500)
committerArmaan Bhojwani <me@armaanb.net>
Sat, 6 Mar 2021 01:11:08 +0000 (20:11 -0500)
git-mirror

index 146f9e0932b47f89ff58d691c300a8313d51d6b9..5807b87e09c8cf104c50f4a2f110ce23ce3de50f 100755 (executable)
@@ -25,7 +25,7 @@ while :; do
       cd ${newdir}
       stagit ${dir}
       cp /usr/share/doc/stagit/style.css .
-      git fetch --tags
+      git -C ${dir} fetch --tags
       echo $(date -Iseconds) ' | ' ${dir} | tee -a ${2}
       echo $(tail -n 1500 ${2}) > ${2}
     done