[Buildroot] [PATCH 5/7 v3] download/git: ensure we checkout to a clean state
Yann E. MORIN
yann.morin.1998 at free.fr
Thu Apr 26 19:47:46 UTC 2018
Ricardo, All,
On 2018-04-26 00:01 -0300, Ricardo Martincoski spake thusly:
> On Sun, Apr 22, 2018 at 04:44 PM, Yann E. MORIN wrote:
>
> > Force the checkout to ignore any local changes. This allows recovering
>
> Nit: actually it does not 'ignore' local changes. It overwrites them. Right?
> The help says "to throw away local changes".
Yeah, right.
> > from a previous partial checkout (e.g. killed by the user, or by a CI
> > job...)
>
> This patch covers *some* cases of partial checkout, but not all.
> A partial checkout also can lead to untracked files.
>
> An easy way to check this is to run on a linux tree:
> git checkout -f v4.14
> git checkout -f v4.4 # ctrl+c when the checkout is around 50%
Sorry, that was too fast here, I did not have the opportunity to hit
Ctrl-C. Muhahaha! ;-]
> git checkout -f v4.5
> git status
But yeah, I reproduced with commits much further away from each others...
> Without the next patch, that brings 'git clean', when previously there is an
> untracked file in the worktree, all git commands succeed, but that file is
> included in the tarball and the hash mismatches.
>
> Can we bring 'git clean' to this patch?
> Or do we adjust the commit title/message?
I'll adapt and bring git-clean here.
Thanks! :-)
Regards,
Yann E. MORIN.
> > git checkout -f has been supported since the inception of git, so we can
> > use it without any second thought.
>
> Regards,
> Ricardo
--
.-----------------.--------------------.------------------.--------------------.
| 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