]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
download/git: more resilient in case of kill
authorYann E. MORIN <yann.morin.1998@free.fr>
Mon, 9 Apr 2018 21:56:51 +0000 (23:56 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 10 Apr 2018 07:28:43 +0000 (09:28 +0200)
commit6dfaa33d131ca9d8b056956f16f94e8370bd7289
treefa4b0015a5c52fa88d578ddb7c468692e896ad50
parent3f12545c11ca9927975a4d96f20afaf474913314
download/git: more resilient in case of kill

In case the git backend gets killed right in-between it finished
initialising the repository, but before it could add the remote,
we'd end up with a repository without the 'origin' remote, so we
would not be able to change its URL.

Another case that may happen (like in the build failure, below),
is that the repository was initialised with a previous version
of Buildroot, before the commit e17719264b (download/git: don't
require too-recent git) was applied, and that trepository was
still lying around...

Fixes:
    http://autobuild.buildroot.org/results/25a/25aae054634368fadb265b97ebe4dda809deff6f/

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
support/download/git