From: Armaan Bhojwani Date: Sat, 6 Mar 2021 01:11:08 +0000 (-0500) Subject: git-mirror: fix git running in the wrong directory X-Git-Tag: v0.0.1~28 X-Git-Url: https://git.armaanb.net/?p=bin.git;a=commitdiff_plain;h=8695d4a6103f11a8b6d5d8778b3869cb211cd2fc git-mirror: fix git running in the wrong directory --- diff --git a/git-mirror b/git-mirror index 146f9e0..5807b87 100755 --- a/git-mirror +++ b/git-mirror @@ -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