All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/7 v3] support/download: make the git backend even more robust
@ 2018-04-22 19:44 Yann E. MORIN
  2018-04-22 19:44 ` [Buildroot] [PATCH 1/7 v3] download/git: add warning not to use our git cache Yann E. MORIN
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Yann E. MORIN @ 2018-04-22 19:44 UTC (permalink / raw)
  To: buildroot

Hello All!

This series makes our git backend even more robust than what we
currently have. Especially, it will try to recover from a repository
that was so utterly butchered that even a git-init can't salvage it.

The most significant changes are:

  - ensure we can checkout from an unclean state;

  - ensure we can checkout across changes in submodules setup;

  - as a last-ditch recovery, trash the local cache and clone again
    from scratch.

Additionally, we also remove support for shallow clones, because they
were in fact fundamentally broken, and did only work by chance.

Finally, we add a warning file, that the user should not use our git
cache for development, neither directly in it nor as a remote or the
origin for worktrees.

Thanks a lot to Ricardo, Arnout and Thomas for their inputs during the
discussions that led to this series. :-)

---
Changes v2 -> v3:
  - do not trash the cache if the cset is missing  (Thomas)


Regards,
Yann E. MORIN.


The following changes since commit 8469054fff6142d0f7684141feff6eec22aa3d57

  support/config-fragments/autobuild: update ARC pre-built toolchain (2018-04-22 12:28:41 +0200)


are available in the git repository at:

  git://git.buildroot.org/~ymorin/git/buildroot.git

for you to fetch changes up to 6e189d3bdfe5242fb9c3244593b7872ffb4de6e7

  download/git: always do full-clone (2018-04-22 21:12:22 +0200)


----------------------------------------------------------------
Yann E. MORIN (7):
      download/git: add warning not to use our git cache
      download/git: run all git commands in the current directory
      download/git: quickly exit when the cset does not exist
      download/git: try to recover from utterly-broken repositories
      download/git: ensure we checkout to a clean state
      download/git: ensure we can checkout repos with submodule conversions
      download/git: always do full-clone

 support/download/git | 120 ++++++++++++++++++++++++++++++++++++++++-----------
 1 file changed, 94 insertions(+), 26 deletions(-)

-- 
.-----------------.--------------------.------------------.--------------------.
|  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.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-04-26 19:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-22 19:44 [Buildroot] [PATCH 0/7 v3] support/download: make the git backend even more robust Yann E. MORIN
2018-04-22 19:44 ` [Buildroot] [PATCH 1/7 v3] download/git: add warning not to use our git cache Yann E. MORIN
2018-04-22 19:44 ` [Buildroot] [PATCH 2/7 v3] download/git: run all git commands in the current directory Yann E. MORIN
2018-04-22 19:44 ` [Buildroot] [PATCH 3/7 v3] download/git: quickly exit when the cset does not exist Yann E. MORIN
2018-04-22 19:44 ` [Buildroot] [PATCH 4/7 v3] download/git: try to recover from utterly-broken repositories Yann E. MORIN
2018-04-22 19:44 ` [Buildroot] [PATCH 5/7 v3] download/git: ensure we checkout to a clean state Yann E. MORIN
2018-04-26  3:01   ` Ricardo Martincoski
2018-04-26 19:47     ` Yann E. MORIN
2018-04-22 19:44 ` [Buildroot] [PATCH 6/7 v3] download/git: ensure we can checkout repos with submodule conversions Yann E. MORIN
2018-04-22 19:44 ` [Buildroot] [PATCH 7/7 v3] download/git: always do full-clone Yann E. MORIN

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.