Mailinglist Archive: opensuse-buildservice (327 mails)

< Previous Next >
Re: [opensuse-buildservice] [PATCH] checkout git branch with tar_scm source servce
  • From: Adrian Schröter <adrian@xxxxxxx>
  • Date: Mon, 11 Apr 2011 15:43:08 +0200
  • Message-id: <2963382.MMEi7R9mQB@scherben>
Am Montag, 11. April 2011, 15:05:48 schrieb Will Stephenson:
On Monday 11 April 2011 14:34:14 Adrian Schröter wrote:
Am Montag, 11. April 2011, 14:31:02 schrieb Will Stephenson:
On Monday 11 April 2011 13:16:25 Adrian Schröter wrote:
Hm, but why do you need this at all ?


I'm not sure what 'this' refers to, did you mean this line:

+ git checkout -B "$MYBRANCH"


git checkout -r $BRANCH

working for you ?

? Did I miss a git syntax trick? the git-checkout manpage doesn't
mention an -r option.

right, it is just "git checkout $BRANCH".

Why do you need the -B option and therefore an extra switch ?

Because I only speak baby git and didn't realise that no extra flags are
necessary if the remote branch exists :/

So the patch is redundant because --revision can be used to checkout a
particular branch, correct?

I think so.

Adrian Schroeter
SUSE Linux Products GmbH
email: adrian@xxxxxxx

To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >