[Buildroot] [PATCH 3/4] download/git: ensure we can checkout repos with submodule conversions
Yann E. MORIN
yann.morin.1998 at free.fr
Fri Apr 20 09:25:16 UTC 2018
Arnout, All,
On 2018-04-20 01:30 +0200, Arnout Vandecappelle spake thusly:
> On 19-04-18 21:59, Yann E. MORIN wrote:
> > On 2018-04-18 10:04 +0200, Arnout Vandecappelle spake thusly:
[--SNIP--]
> >> I'm liking the bare repos more and more :-)
> > But then, we can't have submodules stored in a bare repo, because we
> > need a workign copy to have the list of submodules, and their
> > versions...
>
> It's *possible* to do things fully "manually", e.g. with some plumbing commands:
>
> export GIT_DIR=/path/to/bare/repo
> blob=$(git ls-tree $cset .gitmodules | awk '{print $3}')
> if [ "$blob" ]; then
> tmpfile=$(git unpack-file $blob)
> etc. etc.
I hope you were only joking there... ;-)
No, no, no... We don't want to go that route, reinventing the git
internals in a shell script... Even I can't find this appealing...
Well, that could be fun to write...
No, don't look down the deep ravine... ;-]
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
More information about the buildroot
mailing list