From: Rudolf Polzer Date: Wed, 27 Jul 2011 17:58:55 +0000 (+0200) Subject: fix another error case X-Git-Tag: xonotic-v0.5.0~49 X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=8bca9257a28b7f14a47b0c6dbb61e9f71f48012f;p=xonotic%2Fxonotic.git fix another error case --- diff --git a/all b/all index 9e1f3ec2..705423c8 100755 --- a/all +++ b/all @@ -520,7 +520,7 @@ case "$cmd" in url=`repourl "$d"` pushurl=`repopushurl "$d"` branch=`repobranch "$d"` - if [ -d "$d0/$d" ]; then + if [ -f "$d0/$d/.git/config" ]; then verbose cd "$d0/$d" fix_git_config "$url" "$pushurl" cd "$d0" @@ -727,7 +727,7 @@ case "$cmd" in fi else if [ -d "$d0/$d" ]; then - if yesno "$d0/$d is in the way, get rid of it?"; then + if yesno "$d0/$d is in the way, get rid of it and reclone?"; then verbose rm -rf "$d0/$d" else echo "Note: $d0/$d will stay broken."