[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Linux-libre git repository
From: |
Danny Milosavljevic |
Subject: |
Re: Linux-libre git repository |
Date: |
Fri, 14 Aug 2020 16:03:23 +0200 |
Hi Vagrant,
On Thu, 13 Aug 2020 09:47:21 -0700
Vagrant Cascadian <vagrant@reproducible-builds.org> wrote:
> The source checkout was quite slow to download, and took up ~1GB in the
> store once completed. I'm not sure how guix's git origin works exactly;
git init
git remote add origin <url>
if git fetch --depth 1 origin <commit>
then
git checkout FETCH_HEAD
else
echo "Failed to do a shallow fetch; retrying a full fetch..."
git fetch origin
git checkout <commit>
fi
if ,recursive?
then
git submodule update --init --recursive
rm -rf .git for each submodule
fi
rm -rf .git
See guix/build/git.scm .
There exist git servers that have disabled fetching by commit hash for
"security" reasons (if you checked in a file containing a password and
then removed it again, and no branch or tag to it exists, nobody can
get to it even if he knew the commit hash). We would always use the
fallback for those servers.
> if it downloads the entire git history even to perform a shallow
> checkout of a single commit, and then throws out the git history?
As a fallback if the above doesn't work.
> appear to be calling git with flags to perform a shallow checkout.
Yes.
pgpxSN35gRGje.pgp
Description: OpenPGP digital signature
- Re: Linux-libre 5.8 and beyond, (continued)
Re: Linux-libre 5.8 and beyond, Leo Famulari, 2020/08/09
Re: Linux-libre 5.8 and beyond, Leo Famulari, 2020/08/25
Re: Linux-libre 5.8 and beyond, Jason Self, 2020/08/09
- Re: Linux-libre 5.8 and beyond, Mark H Weaver, 2020/08/12
- Re: Linux-libre 5.8 and beyond, Alexandre Oliva, 2020/08/14
- Re: Linux-libre 5.8 and beyond, Mark H Weaver, 2020/08/15
- Re: Linux-libre 5.8 and beyond, Mark H Weaver, 2020/08/15
- Re: Linux-libre 5.8 and beyond, Jason Self, 2020/08/16
Re: Linux-libre 5.8 and beyond, Jason Self, 2020/08/16
Re: Linux-libre 5.8 and beyond, Alexandre Oliva, 2020/08/23
Re: Linux-libre 5.8 and beyond, Mark H Weaver, 2020/08/25
Re: Linux-libre 5.8 and beyond, Alexandre Oliva, 2020/08/25
Re: Linux-libre 5.8 and beyond, Alexandre Oliva, 2020/08/23
Re: Linux-libre 5.8 and beyond, Alexandre Oliva, 2020/08/24