Mailinglist Archive: opensuse-buildservice (327 mails)
| < Previous | Next > |
Re: [opensuse-buildservice] [PATCH] checkout git branch with tar_scm source servce
- From: Will Stephenson <wstephenson@xxxxxxx>
- Date: Mon, 11 Apr 2011 14:31:02 +0200
- Message-id: <201104111431.03231.wstephenson@suse.de>
On Monday 11 April 2011 13:16:25 Adrian Schröter wrote:
I'm not sure what 'this' refers to, did you mean this line:
+ git checkout -B "$MYBRANCH"
? Did I miss a git syntax trick? the git-checkout manpage doesn't mention an
-r option.
My intention is to have a source service that can tar up an arbitrary branch,
and afaics there isn't a way to do that with git in tar_scm at present. If I
understand correctly, tar_scm may be called where an existing clone exists, so
I used checkout -B to cover the case that the user changes the branch in an
existing source service so the existing clone is checked out to the requested
branch.
Will
--
Will Stephenson, KDE Developer, openSUSE Boosters Team
SUSE LINUX Products GmbH - Nürnberg - AG Nürnberg - HRB 16746 - GF: Markus Rex
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx
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"
Isn't
git checkout -r $BRANCH
working for you ?
? Did I miss a git syntax trick? the git-checkout manpage doesn't mention an
-r option.
My intention is to have a source service that can tar up an arbitrary branch,
and afaics there isn't a way to do that with git in tar_scm at present. If I
understand correctly, tar_scm may be called where an existing clone exists, so
I used checkout -B to cover the case that the user changes the branch in an
existing source service so the existing clone is checked out to the requested
branch.
Will
--
Will Stephenson, KDE Developer, openSUSE Boosters Team
SUSE LINUX Products GmbH - Nürnberg - AG Nürnberg - HRB 16746 - GF: Markus Rex
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx
| < Previous | Next > |