Skip to content

Commit 3f75f92

Browse files
authored
Merge pull request #7 from gitkraken/bump/git-2.47.0
Bump git to 2.47.0
2 parents f9eacf7 + e422f1c commit 3f75f92

File tree

7 files changed

+25
-67
lines changed

7 files changed

+25
-67
lines changed

.github/workflows/ci.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: Shellcheck
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
1717
- name: Run ShellCheck
1818
run: |
1919
sudo apt-get install shellcheck
@@ -93,7 +93,7 @@ jobs:
9393
TARGET_PLATFORM: ${{ matrix.targetPlatform }}
9494
TARGET_ARCH: ${{ matrix.arch }}
9595
- name: Upload output artifacts
96-
uses: actions/upload-artifact@v2
96+
uses: actions/upload-artifact@v4
9797
with:
9898
name:
9999
dugite-native-${{ matrix.targetPlatform }}-${{ matrix.arch }}-output
@@ -106,10 +106,10 @@ jobs:
106106
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
107107
runs-on: ubuntu-latest
108108
steps:
109-
- uses: actions/checkout@v2
109+
- uses: actions/checkout@v4
110110

111111
- name: Download all artifacts
112-
uses: actions/download-artifact@v2
112+
uses: actions/download-artifact@v4
113113
with:
114114
path: './artifacts'
115115

dependencies.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"git": {
3-
"version": "v2.45.2",
3+
"version": "v2.47.0",
44
"packages": [
55
{
66
"platform": "windows",
77
"arch": "amd64",
8-
"filename": "PortableGit-2.45.2-64-bit.7z.exe",
9-
"url": "https://github.com/git-for-windows/git/releases/download/v2.45.2.windows.1/PortableGit-2.45.2-64-bit.7z.exe",
10-
"checksum": "851a15074dea6b272785b2a2a4697a72970256de2afe7b8e4a9c5e168c27ccdd"
8+
"filename": "PortableGit-2.47.0.2-64-bit.7z.exe",
9+
"url": "https://github.com/git-for-windows/git/releases/download/v2.47.0.windows.2/PortableGit-2.47.0.2-64-bit.7z.exe",
10+
"checksum": "c77368a8f6ccbd43bde0df0ab603133ce885407a018787d6f1971e040590f1ab"
1111
}
1212
]
1313
},

git

Submodule git updated 1337 files

script/build-ubuntu.sh

+7-55
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,13 @@ case "$TARGET_ARCH" in
3131
export CC="gcc"
3232
STRIP="strip"
3333
HOST=""
34-
TARGET=""
35-
OSSL_TARGET="linux-x86_64" ;;
34+
TARGET="" ;;
3635
"x86")
3736
DEPENDENCY_ARCH="x86"
3837
export CC="i686-linux-gnu-gcc"
3938
STRIP="i686-gnu-strip"
4039
HOST="--host=i686-linux-gnu"
41-
TARGET="--target=i686-linux-gnu"
42-
OSSL_TARGET="linux-generic32" ;;
40+
TARGET="--target=i686-linux-gnu" ;;
4341
"arm64")
4442
# __GLIBC_MINOR__ is used as a feature test macro. Replace it with the
4543
# earliest supported version of glibc 2.17 as was previously the case when building on ubuntu-18.04
@@ -50,15 +48,13 @@ case "$TARGET_ARCH" in
5048
export CC="aarch64-linux-gnu-gcc"
5149
STRIP="aarch64-linux-gnu-strip"
5250
HOST="--host=aarch64-linux-gnu"
53-
TARGET="--target=aarch64-linux-gnu"
54-
OSSL_TARGET="linux-aarch64" ;;
51+
TARGET="--target=aarch64-linux-gnu" ;;
5552
"arm")
5653
DEPENDENCY_ARCH="arm"
5754
export CC="arm-linux-gnueabihf-gcc"
5855
STRIP="arm-linux-gnueabihf-strip"
5956
HOST="--host=arm-linux-gnueabihf"
60-
TARGET="--target=arm-linux-gnueabihf"
61-
OSSL_TARGET="linux-armv4" ;;
57+
TARGET="--target=arm-linux-gnueabihf" ;;
6258
*)
6359
exit 1 ;;
6460
esac
@@ -74,62 +70,18 @@ source "$CURRENT_DIR/compute-checksum.sh"
7470
# shellcheck source=script/check-static-linking.sh
7571
source "$CURRENT_DIR/check-static-linking.sh"
7672

77-
echo " -- Building vanilla OpenSSL at $OSSL_INSTALL_DIR instead of distro-specific version"
78-
79-
OSSL_FILE_NAME="openssl-1.0.2u"
80-
OSSL_FILE="$OSSL_FILE_NAME.tar.gz"
81-
82-
cd /tmp || exit 1
83-
curl -LO "https://www.openssl.org/source/$OSSL_FILE"
84-
tar -xf $OSSL_FILE
85-
86-
(
87-
cd $OSSL_FILE_NAME || exit 1
88-
89-
# this will conflict with a variable in the makefile
90-
unset TARGET_ARCH
91-
92-
# flags:
93-
# - no-ssl2: deprecated
94-
# - no-ssl3: deprecated
95-
# - no-comp: not used by libcurl
96-
# - no-dso: libcurl won't respect libssl saying it needs -ldl
97-
# - no-engine: disabled because
98-
./Configure \
99-
"$OSSL_TARGET" \
100-
shared \
101-
no-ssl2 \
102-
no-ssl3 \
103-
no-comp \
104-
no-dso \
105-
no-engine \
106-
--prefix="$OSSL_INSTALL_DIR" \
107-
--openssldir="$OSSL_INSTALL_DIR"
108-
109-
make depend
110-
make build_libs
111-
make install
112-
)
11373
echo " -- Building vanilla curl at $CURL_INSTALL_DIR instead of distro-specific version"
11474

115-
CURL_FILE_NAME="curl-7.29.0"
75+
CURL_FILE_NAME="curl-7.58.0"
11676
CURL_FILE="$CURL_FILE_NAME.tar.gz"
11777

11878
cd /tmp || exit 1
119-
curl -LO "https://curl.haxx.se/download/archeology/$CURL_FILE"
79+
curl -LO "https://curl.haxx.se/download/$CURL_FILE"
12080
tar -xf $CURL_FILE
12181

12282
(
12383
cd $CURL_FILE_NAME || exit 1
124-
125-
export LDFLAGS="-Wl,-R$OSSL_INSTALL_DIR/lib"
126-
127-
./configure \
128-
--enable-threaded-resolver \
129-
--enable-tls-srp \
130-
--prefix="$CURL_INSTALL_DIR" \
131-
--with-ssl="$OSSL_INSTALL_DIR" \
132-
"$HOST" "$TARGET"
84+
./configure --prefix="$CURL_INSTALL_DIR" "$HOST" "$TARGET"
13385
make install
13486
)
13587
echo " -- Building git at $SOURCE to $DESTINATION"

script/build.sh

-1
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,4 @@ BASEDIR=$ROOT \
2323
SOURCE="$ROOT/git" \
2424
DESTINATION="/tmp/build/git" \
2525
CURL_INSTALL_DIR="/tmp/build/curl" \
26-
OSSL_INSTALL_DIR="/tmp/build/openssl" \
2726
bash "$SCRIPT"

script/generate-release-notes.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export default class GenerateReleaseNotes {
163163
const match = mergeCommitRegex.exec(mergeCommitMessage)
164164
if (match != null && match.length === 2) {
165165
const num = parseInt(match[1])
166-
if (num != NaN) {
166+
if (!Number.isNaN(num)) {
167167
pullRequestIds.push(num)
168168
}
169169
}
@@ -178,7 +178,7 @@ export default class GenerateReleaseNotes {
178178
pull_number: pullRequestId,
179179
})
180180
const { title, number, user } = result.data
181-
const entry = ` - ${title} - #${number} via @${user.login}`
181+
const entry = ` - ${title} - #${number} via @${user?.login ?? 'unknown'}`
182182
releaseNotesEntries.push(entry)
183183
}
184184

script/update-git.ts

+7
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,13 @@ async function run() {
203203
}
204204
}
205205

206+
if (!body) {
207+
console.log(
208+
`🔴 No release notes found for Git for Windows version ${version}`
209+
)
210+
return
211+
}
212+
206213
const package64bit = await getPackageDetails(assets, body, 'amd64')
207214

208215
if (package64bit == null) {

0 commit comments

Comments
 (0)