[aur-general] PKGBUILD-git that actually works with branches

Sebastian Schwarz seschwar at googlemail.com
Fri May 28 14:49:31 EDT 2010

On 2010-05-28 at 19:38 +0200, Philipp Überbacher wrote:
> That's why I defaulted to "master", but I get the following error:
> fatal: git checkout: branch master already exists
> It works, but I need some input on whether and how the default case
> can be handled more gracefully.

There isn't really a need to create a new branch if you just
want to do a checkout.  Simply change

    git checkout --track -b  ${_gitbranch} origin/${_gitbranch}

in http://pastebin.com/deqgqjJe to

    git checkout origin/${_gitbranch}

See the amendment of the paste at http://pastebin.com/C8sC7wAe

More information about the aur-general mailing list