]> de.git.xonotic.org Git - xonotic/xonotic.git/blobdiff - all
gitattributes: clean up .map files on commit
[xonotic/xonotic.git] / all
diff --git a/all b/all
index 5eb4af738d666bfc7981060b930071e9015736bd..d83222742c2cb0d5151240aa2fe5f5b0f4b2cf3a 100755 (executable)
--- a/all
+++ b/all
@@ -1075,8 +1075,8 @@ case "$cmd" in
                                                verbose git branch -D "${B#refs/heads/}"
                                        fi
                                done
-                               verbose git branch -t master origin/master || true
-                               verbose git branch -t "`repobranch "$d"`" origin/"`repobranch "$d"`" || true
+                               git rev-parse refs/heads/master >/dev/null 2>&1 || verbose git branch -t master origin/master || true
+                               git rev-parse "refs/heads/`repobranch "$d"`" >/dev/null 2>&1 || verbose git branch -t "`repobranch "$d"`" origin/"`repobranch "$d"`" || true
                        fi
                done
                ;;