Add --no-fetch option to KO

Junio C Hamano committed Dec 25, 2006 at 22:21 UTC d74c6543f3dac4bb6bcc7d17482d2b1f3d7c7354
1 file changed +2 -1
KO
+2 -1
@@ -3,7 +3,8 @@
3 # Not for general consumption; a script I used to make sure
4 # I do not accidentally push a rewound master to public.
5
6 -git fetch ko
6 +case "$1" in --no-fetch) shift ;; *) git fetch ko ;; esac
7 +
8 mb=$(git merge-base ko-master master)
9 h=$(git rev-parse $mb ko-master | sort -u | wc -l)
10 if test "$h" != 1