projects
/
xonotic
/
xonotic.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9787afd
)
Allow the repo's default branch to differ from master.
author
Rudolf Polzer <divverent@xonotic.org>
Sat, 30 Aug 2014 09:29:30 +0000
(11:29 +0200)
committer
Rudolf Polzer <divverent@xonotic.org>
Sat, 30 Aug 2014 09:29:30 +0000
(11:29 +0200)
misc/tools/all/git.subr
patch
|
blob
|
history
diff --git
a/misc/tools/all/git.subr
b/misc/tools/all/git.subr
index 5c8d53dc18094585f3304c830d4e41f67e7a813e..26b768c30478cd87988797ddb6ae8383dd7c3dad 100644
(file)
--- 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
}