From: "Stefan Näwe" <stefan.naewe@atlas-elektronik.com>
To: Git List <git@vger.kernel.org>
Subject: Re: git clone -b
Date: Fri, 28 Jun 2013 14:15:57 +0200 [thread overview]
Message-ID: <51CD7E7D.4040104@atlas-elektronik.com> (raw)
In-Reply-To: <51CD7AB7.3040409@atlas-elektronik.com>
Am 28.06.2013 13:59, schrieb Stefan Näwe:
> Hi there!
>
> Is there any reason why 'git clone -b' only takes a branch (from refs/heads/)
> or a tag (from refs/tags/) ?
>
> Background: At $dayjob we're using some kind of 'hidden' refs (in refs/releases/)
> to communicate between the 'branch integrator' (who creates the ref in refs/releases/)
> and the 'build master' who wants to build that ref.
>
> It would be a little easier if the build master could simply say
>
> git clone -b refs/releases/the-release-for-today URL
>
> instead of: git clone... ; cd ... ; git fetch... ; git checkout....
>
> Any answer or even a better idea to solve that is appreciated.
>
> Stefan
>
Oh, and while at it:
This doesn't look/feel right:
$ git clone -b refs/heads/master git/.git other-git
Cloning into 'other-git'...
fatal: Remote branch refs/heads/master not found in upstream origin
fatal: The remote end hung up unexpectedly
(where git is git's git which definitely has refs/heads/master...)
Stefan
--
----------------------------------------------------------------
/dev/random says: In God we trust; all else we walk through.
python -c "print '73746566616e2e6e616577654061746c61732d656c656b74726f6e696b2e636f6d'.decode('hex')"
next prev parent reply other threads:[~2013-06-28 12:16 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-28 11:59 git clone -b Stefan Näwe
2013-06-28 12:15 ` Stefan Näwe [this message]
2013-06-28 12:18 ` Fredrik Gustafsson
2013-06-28 12:27 ` Stefan Näwe
2013-07-01 7:04 ` Stefan Näwe
2013-07-01 16:46 ` Junio C Hamano
2013-07-02 6:35 ` Stefan Näwe
2013-07-02 18:21 ` Junio C Hamano
2013-07-01 17:49 ` Phil Hord
2013-07-03 10:01 ` Jeff King
-- strict thread matches above, loose matches on Subject: below --
2017-05-08 6:30 Дилян Палаузов
2017-05-08 7:42 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51CD7E7D.4040104@atlas-elektronik.com \
--to=stefan.naewe@atlas-elektronik.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).