From e4fdb51af95849173b80317f16351a5658122ac2 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sat, 30 Aug 2014 11:29:30 +0200 Subject: [PATCH 1/1] Allow the repo's default branch to differ from master. --- misc/tools/all/git.subr | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/misc/tools/all/git.subr b/misc/tools/all/git.subr index 5c8d53dc..26b768c3 100644 --- a/misc/tools/all/git.subr +++ b/misc/tools/all/git.subr @@ -648,13 +648,10 @@ case "$cmd" in fi o=`git config xonotic.all.mirrorselection 2>/dev/null || true` git config xonotic.all.mirrorselection try_same - verbose git clone "$url" "$d0/$d" + verbose git clone --branch "$branch" "$url" "$d0/$d" git config xonotic.all.mirrorselection "$o" enter "$d0/$d" verbose fix_git_config "$url" "$pushurl" - if [ "$branch" != "master" ]; then - verbose git checkout --track -b "$branch" origin/"$branch" - fi cd "$d0" fi } -- 2.39.2