[aur-general] PKGBUILD-git that actually works with branches
Sebastian Schwarz
seschwar at googlemail.com
Fri May 28 16:52:52 EDT 2010
On 2010-05-28 at 13:24 -0700, Justin Davis wrote:
> Is there a reason not to just use 'git checkout "$_gitbranch"'
> instead?
By default git-clone only creates a remote tracking branch for
master or whichever branch is specified with the `-b` option.
Thus you either have to checkout the branch from the remote,
which defaults to "origin", or tell git to setup with the
desired branch right from the beginning using:
git clone -b "$_gitbranch" "$_gitname" "$_gitroot"
Then additional checkout of $_gitbranch isn't needed.
More information about the aur-general
mailing list