Skip to content

Commit ecc83da

Browse files
committed
curl: fix git clone targeting Bitbucket
A regression introduced into cURL v7.87.0 causes clones from Bitbucket repositories that use the Secure Channel backend to fail in this fashion: $ git -c http.sslbackend=schannel clone https://[email protected]/jurko/testinggit.git Cloning into 'testinggit'... remote: Enumerating objects: 3, done. remote: Counting objects: 100% (3/3), done. remote: Compressing objects: 100% (2/2), done. remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 error: RPC failed; curl 56 Failure when receiving data from the peer Unpacking objects: 100% (3/3), 590 bytes | 98.00 KiB/s, done. The fix for this was already applied in cURL's main-line branch. Let's backport it. This fixes git-for-windows/git#4194 Signed-off-by: Johannes Schindelin <[email protected]>
1 parent c8ccd71 commit ecc83da

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

mingw-w64-curl/PKGBUILD

+5-2
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@ depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs"
2424
options=('staticlibs')
2525
source=("${url}/download/${_realname}-${pkgver}.tar.bz2"{,.asc}
2626
"0001-Make-cURL-relocatable.patch"
27-
"0002-Hack-make-relocation-work-inside-libexec-git-core-an.patch")
27+
"0002-Hack-make-relocation-work-inside-libexec-git-core-an.patch"
28+
https://github.com/curl/curl/commit/54120efdf64c40c93308dee3935bbed7e1cdc1aa.patch)
2829
sha256sums=('5d6e128761b7110946d1276aff6f0f266f2b726f5e619f7e0a057a474155f307'
2930
'SKIP'
3031
'13a090fd04bb057639eb9aceea8d43c0828b03a19d966103dd6a72af5ddc5efb'
31-
'4e014889f83e534516f444fa130e338d5e113dbfd55b98cc5c988bbc5c1825ff')
32+
'4e014889f83e534516f444fa130e338d5e113dbfd55b98cc5c988bbc5c1825ff'
33+
'd142acb6a638995a9cc418fc22c947f29d9103da9861266c7022e9b1dea093cd')
3234
validpgpkeys=('914C533DF9B2ADA2204F586D78E11C6B279D5C91' # Daniel Stenberg
3335
'27EDEAF22F3ABCEB50DB9A125CC908FDB71E12C2'
3436
'4461EAF0F8E9097F48AF0555F9FEAFF9D34A1BDB')
@@ -57,6 +59,7 @@ prepare() {
5759
rm -f lib/pathtools.h lib/pathtools.c tests/data/test2070 >/dev/null 2>&1 || true
5860
patch -p1 -i "${srcdir}/0001-Make-cURL-relocatable.patch"
5961
patch -p1 -i "${srcdir}/0002-Hack-make-relocation-work-inside-libexec-git-core-an.patch"
62+
patch -p1 -i "${srcdir}/54120efdf64c40c93308dee3935bbed7e1cdc1aa.patch"
6063
autoreconf -vfi
6164
}
6265

0 commit comments

Comments
 (0)