X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=all;h=29928197ae8b4fdd86e78f6da91f23982c8b0e6d;hb=424371fc875a01260b08ed89336293b6281f38be;hp=ce391b21e617a0d9dfbe16ee4b28f48febd36c95;hpb=2bc85d3c039c8839565a807b3b44d6c9a21f09be;p=xonotic%2Fxonotic.git diff --git a/all b/all index ce391b21..29928197 100755 --- a/all +++ b/all @@ -380,6 +380,10 @@ fix_upstream_rebase_mergefail() fix_git_config() { + if ! [ -d ".git" ]; then + $ECHO "Not a git repository. Bailing out to not cause damage." + exit 1 + fi verbose git config remote.origin.url "$1" if [ -n "$2" ]; then verbose git config remote.origin.pushurl "$2"