Re: [BUG] Cloning with git HEAD fails for some repositories
- From
- Eric Wong <e@80x24.org>
- Date
- Mar 22, 2019, 20:35 UTC
- Message-ID
- <20190322203525.nw54axh63zq7lfek@dcvr>
- In-Reply-To
- <78963dea-9ac8-8fd3-c3cc-6237eee6f974@gmx.de>
Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
Show 10 quoted lines
> Yes, git HEAD + said patch works with this command: > git -c http.followRedirects=true clone http://git.denx.de/u-boot-efi.git > > http.followRedirects is documented in man 1 git-config. > > Why would git prior to 17966c0a63d25b1cc2dd1e98d30873e643bd581f~1 work > without this redirect parameter? > > That following redirects is not secure is already described in > https://github.com/git/git/blob/master/Documentation/RelNotes/2.12.3.txt
17966c0a63d25b1cc2dd1e98d30873e643bd581f predates the requirement to enable http.followRedirects for http-alternates: cb4d2d35c4622ec2513c1c352d30ff8f9f9cdb9e ("http: treat http-alternates like redirects")