Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 0/7 v5] support/download: make the git backend even more robust
Date: Tue,  1 May 2018 10:44:11 +0200	[thread overview]
Message-ID: <cover.1525164241.git.yann.morin.1998@free.fr> (raw)

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 v4 -> v5:
  - fix trapping in the _git fuction  (Ricardo)
  - carry reviews and tests by Ricardo
  - typoes  (Ricardo)

Changes v3 -> v4:
  - git clean --ffdx  is needed in the same patch that fircs the
    checkout  (Ricardo)

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


Regards,
Yann E. MORIN.


The following changes since commit 5a8f887e7ab6c28b2d5a4c01266bc75943cea90c

  sdl2: update license file hash (2018-05-01 09:35:41 +0200)


are available in the git repository at:

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

for you to fetch changes up to 657e448ced76f18222d9987baf7bca48d550f13b

  download/git: always do full-clone (2018-05-01 10:41:02 +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 | 123 ++++++++++++++++++++++++++++++++++++++++-----------
 1 file changed, 96 insertions(+), 27 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.  |
'------------------------------^-------^------------------^--------------------'

             reply	other threads:[~2018-05-01  8:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-01  8:44 Yann E. MORIN [this message]
2018-05-01  8:44 ` [Buildroot] [PATCH 1/7 v5] download/git: add warning not to use our git cache Yann E. MORIN
2018-05-01  8:44 ` [Buildroot] [PATCH 2/7 v5] download/git: run all git commands in the current directory Yann E. MORIN
2018-05-01  8:44 ` [Buildroot] [PATCH 3/7 v5] download/git: quickly exit when the cset does not exist Yann E. MORIN
2018-05-01  8:44 ` [Buildroot] [PATCH 4/7 v5] download/git: try to recover from utterly-broken repositories Yann E. MORIN
2018-05-01  8:44 ` [Buildroot] [PATCH 5/7 v5] download/git: ensure we checkout to a clean state Yann E. MORIN
2018-05-01  8:44 ` [Buildroot] [PATCH 6/7 v5] download/git: ensure we can checkout repos with submodule conversions Yann E. MORIN
2018-05-01  8:44 ` [Buildroot] [PATCH 7/7 v5] download/git: always do full-clone Yann E. MORIN
2018-05-01 19:25 ` [Buildroot] [PATCH 0/7 v5] support/download: make the git backend even more robust Thomas Petazzoni
2018-05-02 15:33   ` Yann E. MORIN

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=cover.1525164241.git.yann.morin.1998@free.fr \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@busybox.net \
    /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