Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump to 2.39.3 #445

Merged
merged 3 commits into from
Apr 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 9 additions & 39 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-10.15, windows-2019, ubuntu-18.04]
arch: [x86, x64]
os: [macos-10.15, windows-2019, ubuntu-22.04]
arch: [32, 64]
go: [1.16.3]
include:
- os: macos-10.15
Expand All @@ -40,25 +40,19 @@ jobs:
- os: windows-2019
friendlyName: Windows
targetPlatform: win32
- os: ubuntu-18.04
- os: ubuntu-22.04
friendlyName: Linux
targetPlatform: ubuntu
- os: ubuntu-18.04
friendlyName: Linux
targetPlatform: ubuntu
arch: arm64
- os: ubuntu-18.04
friendlyName: Linux
targetPlatform: ubuntu
arch: arm
exclude:
- os: macos-10.15
arch: x86
arch: 32
- os: ubuntu-22.04
arch: 32
timeout-minutes: 20
steps:
# We need to use Xcode 10.3 for maximum compatibility with older macOS (x64)
- name: Switch to Xcode 10.3
if: matrix.targetPlatform == 'macOS' && matrix.arch == 'x64'
if: matrix.targetPlatform == 'macOS' && matrix.arch == 64
run: |
sudo xcode-select -s /Applications/Xcode_10.3.app/Contents/Developer/
# Delete the command line tools to make sure they don't get our builds
Expand All @@ -79,35 +73,11 @@ jobs:
run: npm run prettier
- name: Build tools
run: npm run check
- name: Install extra dependencies for building Git on Ubuntu (x64)
if: matrix.targetPlatform == 'ubuntu' && matrix.arch == 'x64'
- name: Install extra dependencies for building Git on Ubuntu
if: matrix.targetPlatform == 'ubuntu'
run: |
sudo apt-get update
sudo apt-get install libcurl4-openssl-dev libexpat1-dev gettext
- name: Install extra dependencies for building Git on Ubuntu (x86)
if: matrix.targetPlatform == 'ubuntu' && matrix.arch == 'x86'
run: |
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install gcc-i686-linux-gnu binutils-i686-gnu libcurl4-openssl-dev:i386 libssl-dev:i386 zlib1g-dev:i386 gettext
- name: Install extra dependencies for building Git on Ubuntu (arm64)
if: matrix.targetPlatform == 'ubuntu' && matrix.arch == 'arm64'
run: |
sudo sed -i "s/^deb/deb [arch=amd64,i386]/g" /etc/apt/sources.list
echo "deb [arch=arm64,armhf] http://azure.ports.ubuntu.com/ $(lsb_release -s -c) main universe multiverse restricted" | sudo tee -a /etc/apt/sources.list
echo "deb [arch=arm64,armhf] http://azure.ports.ubuntu.com/ $(lsb_release -s -c)-updates main universe multiverse restricted" | sudo tee -a /etc/apt/sources.list
sudo dpkg --add-architecture arm64
sudo apt-get update
sudo apt-get install gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu libcurl4-openssl-dev:arm64 libssl-dev:arm64 zlib1g-dev:arm64 gettext
- name: Install extra dependencies for building Git on Ubuntu (arm)
if: matrix.targetPlatform == 'ubuntu' && matrix.arch == 'arm'
run: |
sudo sed -i "s/^deb/deb [arch=amd64,i386]/g" /etc/apt/sources.list
echo "deb [arch=arm64,armhf] http://azure.ports.ubuntu.com/ $(lsb_release -s -c) main universe multiverse restricted" | sudo tee -a /etc/apt/sources.list
echo "deb [arch=arm64,armhf] http://azure.ports.ubuntu.com/ $(lsb_release -s -c)-updates main universe multiverse restricted" | sudo tee -a /etc/apt/sources.list
sudo dpkg --add-architecture armhf
sudo apt-get update
sudo apt-get install gcc-arm-linux-gnueabihf binutils-arm-linux-gnueabihf libcurl4-openssl-dev:armhf libssl-dev:armhf zlib1g-dev:armhf gettext
- name: Build (except macOS arm64)
if: matrix.targetPlatform != 'macOS' || matrix.arch != 'arm64'
shell: bash
Expand Down
32 changes: 7 additions & 25 deletions dependencies.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"git": {
"version": "v2.39.2",
"version": "v2.39.3",
"packages": [
{
"platform": "windows",
"arch": "amd64",
"filename": "MinGit-2.39.2-64-bit.zip",
"url": "https://github.com/git-for-windows/git/releases/download/v2.39.2.windows.1/MinGit-2.39.2-64-bit.zip",
"checksum": "a53b90a42d9a5e3ac992f525b5805c4dbb8a013b09a32edfdcf9a551fd8cfe2d"
"filename": "MinGit-2.39.3.windows.1-64-bit.zip",
"url": "https://github.com/git-for-windows/git/releases/download/v2.39.3.windows.1/MinGit-2.39.3.windows.1-64-bit.zip",
"checksum": "ffc5d2213ff567d35c15f3916d54f1d39a5c34e0ce70aa2450ab5b7e0551e2f8"
},
{
"platform": "windows",
"arch": "x86",
"filename": "MinGit-2.39.2-32-bit.zip",
"url": "https://github.com/git-for-windows/git/releases/download/v2.39.2.windows.1/MinGit-2.39.2-32-bit.zip",
"checksum": "f2027f51f8b12e5bd3c94782edddcfe277e26a3fc7c014707a72b04714f3b90f"
"filename": "MinGit-2.39.3.windows.1-32-bit.zip",
"url": "https://github.com/git-for-windows/git/releases/download/v2.39.3.windows.1/MinGit-2.39.3.windows.1-32-bit.zip",
"checksum": "ac4c461ba7dd682e0c35f9675e96de3e8969938f5a4fb77c6f522b7655f834f4"
}
]
},
Expand All @@ -27,24 +27,6 @@
"name": "git-lfs-linux-amd64-v3.3.0.tar.gz",
"checksum": "6a4e6bd7d06d5c024bc70c8ee8c9da143ffc37d2646e252a17a6126d30cdebc1"
},
{
"platform": "linux",
"arch": "x86",
"name": "git-lfs-linux-386-v3.3.0.tar.gz",
"checksum": "14415ebafc3ace60f178cd69d4f2e0ed42dbbf32cb2aba80e46ec3c8f7c1401f"
},
{
"platform": "linux",
"arch": "arm64",
"name": "git-lfs-linux-arm64-v3.3.0.tar.gz",
"checksum": "e97c477981a9b6a40026cadc1bf005541d973fc32df2de2f398643b15df6b5c6"
},
{
"platform": "linux",
"arch": "arm",
"name": "git-lfs-linux-arm-v3.3.0.tar.gz",
"checksum": "df8b24cf7ff6a2f105dd1a3d0a4990c53980272ea94da67d854921e21bc5444c"
},
{
"platform": "windows",
"arch": "x86",
Expand Down
2 changes: 1 addition & 1 deletion git
Submodule git updated 89 files
+52 −11 .github/workflows/check-whitespace.yml
+6 −0 .github/workflows/l10n.yml
+39 −3 .github/workflows/main.yml
+43 −0 Documentation/RelNotes/2.30.9.txt
+6 −0 Documentation/RelNotes/2.31.8.txt
+7 −0 Documentation/RelNotes/2.32.7.txt
+7 −0 Documentation/RelNotes/2.33.8.txt
+7 −0 Documentation/RelNotes/2.34.8.txt
+7 −0 Documentation/RelNotes/2.35.8.txt
+7 −0 Documentation/RelNotes/2.36.6.txt
+7 −0 Documentation/RelNotes/2.37.7.txt
+8 −0 Documentation/RelNotes/2.38.5.txt
+64 −0 Documentation/RelNotes/2.39.3.txt
+4 −0 Documentation/git-branch.txt
+8 −6 Documentation/git-checkout.txt
+1 −1 Documentation/git-cherry-pick.txt
+2 −1 Documentation/git-merge.txt
+7 −0 Documentation/git-rebase.txt
+2 −1 Documentation/git-reset.txt
+12 −0 Documentation/githooks.txt
+2 −1 Documentation/revisions.txt
+1 −1 GIT-VERSION-GEN
+9 −0 Makefile
+1 −1 RelNotes
+1 −1 add-interactive.c
+14 −4 apply.c
+1 −2 blob.c
+1 −2 blob.h
+1 −1 builtin/add.c
+11 −1 builtin/am.c
+3 −3 builtin/branch.c
+4 −5 builtin/bundle.c
+1 −1 builtin/fast-export.c
+5 −8 builtin/ls-tree.c
+1 −1 builtin/merge-tree.c
+1 −1 builtin/merge.c
+1 −1 builtin/rerere.c
+2 −1 builtin/reset.c
+1 −1 builtin/submodule--helper.c
+1 −1 cache.h
+1 −1 combine-diff.c
+4 −2 commit.c
+9 −0 compat/regcomp_enhanced.c
+25 −11 config.c
+1 −0 config.mak.uname
+12 −9 connect.c
+2 −1 connect.h
+1 −1 diff-lib.c
+22 −26 diff.c
+7 −0 dir.c
+6 −6 fetch-pack.c
+4 −0 gettext.c
+6 −0 gettext.h
+17 −5 git-compat-util.h
+4 −3 line-range.c
+16 −15 list-objects-filter.c
+1 −32 list-objects.c
+3 −2 ls-refs.c
+2 −9 object-file.c
+2 −3 object.c
+0 −1 pack-write.c
+8 −4 range-diff.c
+3 −2 ref-filter.c
+3 −1 reflog.c
+5 −4 refs.c
+4 −2 refs.h
+2 −1 refs/packed-backend.c
+15 −10 revision.c
+0 −1 sequencer.c
+1 −1 submodule.c
+10 −1 t/t1091-sparse-checkout-builtin.sh
+30 −0 t/t1300-config.sh
+6 −0 t/t3104-ls-tree-format.sh
+10 −0 t/t3204-branch-name-interpretation.sh
+1 −1 t/t3920-crlf-messages.sh
+6 −6 t/t4023-diff-rename-typechange.sh
+29 −0 t/t4045-diff-relative.sh
+15 −0 t/t4115-apply-symlink.sh
+1 −1 t/t4205-log-pretty-formats.sh
+22 −0 t/t4211-line-log.sh
+10 −7 t/t5314-pack-cycle-detection.sh
+7 −0 t/t6020-bundle-misc.sh
+1 −1 t/t7600-merge.sh
+0 −1 unpack-trees.c
+2 −1 userdiff.c
+1 −1 ws.c
+2 −2 wt-status.c
+1 −1 xdiff/xdiffi.c
+2 −2 xdiff/xemit.c
2 changes: 1 addition & 1 deletion script/build-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -eu -o pipefail

MACOSX_BUILD_VERSION="10.9"

if [ "$TARGET_ARCH" = "x64" ]; then
if [ "$TARGET_ARCH" = "64" ]; then
HOST_CPU=x86_64
TARGET_CFLAGS="-target x86_64-apple-darwin"
GOARCH=amd64
Expand Down
50 changes: 12 additions & 38 deletions script/build-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,39 +20,15 @@ if [[ -z "${CURL_INSTALL_DIR}" ]]; then
exit 1
fi

case "$TARGET_ARCH" in
"x64")
DEPENDENCY_ARCH="amd64"
export CC="gcc"
STRIP="strip"
HOST=""
TARGET="" ;;
"x86")
DEPENDENCY_ARCH="x86"
export CC="i686-linux-gnu-gcc"
STRIP="i686-gnu-strip"
HOST="--host=i686-linux-gnu"
TARGET="--target=i686-linux-gnu" ;;
"arm64")
DEPENDENCY_ARCH="arm64"
export CC="aarch64-linux-gnu-gcc"
STRIP="aarch64-linux-gnu-strip"
HOST="--host=aarch64-linux-gnu"
TARGET="--target=aarch64-linux-gnu" ;;
"arm")
DEPENDENCY_ARCH="arm"
export CC="arm-linux-gnueabihf-gcc"
STRIP="arm-linux-gnueabihf-strip"
HOST="--host=arm-linux-gnueabihf"
TARGET="--target=arm-linux-gnueabihf" ;;
*)
exit 1 ;;
esac
if [ "$TARGET_ARCH" = "64" ]; then
DEPENDENCY_ARCH="amd64"
else
DEPENDENCY_ARCH="x86"
fi

CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
GIT_LFS_VERSION="$(jq --raw-output '.["git-lfs"].version[1:]' dependencies.json)"
GIT_LFS_CHECKSUM="$(jq --raw-output ".\"git-lfs\".files[] | select(.arch == \"$DEPENDENCY_ARCH\" and .platform == \"linux\") | .checksum" dependencies.json)"
GIT_LFS_FILENAME="$(jq --raw-output ".\"git-lfs\".files[] | select(.arch == \"$DEPENDENCY_ARCH\" and .platform == \"linux\") | .name" dependencies.json)"

# shellcheck source=script/compute-checksum.sh
source "$CURRENT_DIR/compute-checksum.sh"
Expand All @@ -70,7 +46,7 @@ tar -xf $CURL_FILE

(
cd $CURL_FILE_NAME || exit 1
./configure --prefix="$CURL_INSTALL_DIR" "$HOST" "$TARGET"
./configure --prefix="$CURL_INSTALL_DIR"
make install
)
echo " -- Building git at $SOURCE to $DESTINATION"
Expand All @@ -79,12 +55,12 @@ echo " -- Building git at $SOURCE to $DESTINATION"
cd "$SOURCE" || exit 1
make clean
make configure
CFLAGS='-Wall -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -U_FORTIFY_SOURCE' \
LDFLAGS='-Wl,-Bsymbolic-functions -Wl,-z,relro' ac_cv_iconv_omits_bom=no ac_cv_fread_reads_directories=no ac_cv_snprintf_returns_bogus=no \
./configure $HOST \
CC='gcc' \
CFLAGS='-Wall -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -U_FORTIFY_SOURCE' \
LDFLAGS='-Wl,-Bsymbolic-functions -Wl,-z,relro' \
./configure \
--with-curl="$CURL_INSTALL_DIR" \
--prefix=/
sed -i "s/STRIP = strip/STRIP = $STRIP/" Makefile
DESTDIR="$DESTINATION" \
NO_TCLTK=1 \
NO_GETTEXT=1 \
Expand All @@ -96,7 +72,7 @@ DESTDIR="$DESTINATION" \
if [[ "$GIT_LFS_VERSION" ]]; then
echo "-- Bundling Git LFS"
GIT_LFS_FILE=git-lfs.tar.gz
GIT_LFS_URL="https://github.com/git-lfs/git-lfs/releases/download/v${GIT_LFS_VERSION}/${GIT_LFS_FILENAME}"
GIT_LFS_URL="https://github.com/git-lfs/git-lfs/releases/download/v${GIT_LFS_VERSION}/git-lfs-linux-amd64-v${GIT_LFS_VERSION}.tar.gz"
echo "-- Downloading from $GIT_LFS_URL"
curl -sL -o $GIT_LFS_FILE "$GIT_LFS_URL"
COMPUTED_SHA256=$(compute_checksum $GIT_LFS_FILE)
Expand Down Expand Up @@ -152,13 +128,12 @@ check_static_linking "$DESTINATION"

set -eu -o pipefail

if [ "$TARGET_ARCH" == "x64" ]; then
(
echo "-- Testing clone operation with generated binary"

TEMP_CLONE_DIR=/tmp/clones
mkdir -p $TEMP_CLONE_DIR

(
cd "$DESTINATION/bin" || exit 1
./git --version
GIT_CURL_VERBOSE=1 \
Expand All @@ -168,6 +143,5 @@ GIT_CURL_VERBOSE=1 \
PREFIX="$DESTINATION" \
./git clone https://github.com/git/git.github.io "$TEMP_CLONE_DIR/git.github.io"
)
fi

set +eu
6 changes: 3 additions & 3 deletions script/build-win32.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if [[ -z "${DESTINATION}" ]]; then
exit 1
fi

if [ "$TARGET_ARCH" = "x64" ]; then
if [ "$TARGET_ARCH" = "64" ]; then
DEPENDENCY_ARCH="amd64"
MINGW_DIR="mingw64"
else
Expand All @@ -20,7 +20,6 @@ fi

GIT_LFS_VERSION=$(jq --raw-output ".[\"git-lfs\"].version[1:]" dependencies.json)
GIT_LFS_CHECKSUM="$(jq --raw-output ".\"git-lfs\".files[] | select(.arch == \"$DEPENDENCY_ARCH\" and .platform == \"windows\") | .checksum" dependencies.json)"
GIT_LFS_FILENAME="$(jq --raw-output ".\"git-lfs\".files[] | select(.arch == \"$DEPENDENCY_ARCH\" and .platform == \"windows\") | .name" dependencies.json)"
GIT_FOR_WINDOWS_URL=$(jq --raw-output ".git.packages[] | select(.arch == \"$DEPENDENCY_ARCH\" and .platform == \"windows\") | .url" dependencies.json)
GIT_FOR_WINDOWS_CHECKSUM=$(jq --raw-output ".git.packages[] | select(.arch == \"$DEPENDENCY_ARCH\" and .platform == \"windows\") | .checksum" dependencies.json)

Expand Down Expand Up @@ -48,7 +47,8 @@ if [[ "$GIT_LFS_VERSION" ]]; then
# download Git LFS, verify its the right contents, and unpack it
echo "-- Bundling Git LFS"
GIT_LFS_FILE=git-lfs.zip
GIT_LFS_URL="https://github.com/git-lfs/git-lfs/releases/download/v${GIT_LFS_VERSION}/${GIT_LFS_FILENAME}"
if [ "$TARGET_ARCH" -eq "64" ]; then GIT_LFS_ARCH="amd64"; else GIT_LFS_ARCH="386"; fi
GIT_LFS_URL="https://github.com/git-lfs/git-lfs/releases/download/v${GIT_LFS_VERSION}/git-lfs-windows-${GIT_LFS_ARCH}-v${GIT_LFS_VERSION}.zip"
echo "-- Downloading from $GIT_LFS_URL"
curl -sL -o $GIT_LFS_FILE "$GIT_LFS_URL"
COMPUTED_SHA256=$(compute_checksum $GIT_LFS_FILE)
Expand Down
2 changes: 1 addition & 1 deletion script/check-static-linking.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ check_static_linking_file() {

# ermagherd there's two whitespace characters between 'LSB' and 'executable'
# when running this on Travis - why is everything so terrible?
if file "$1" | grep -q 'ELF [36][24]-bit LSB'; then
if file "$1" | grep -q 'ELF 64-bit LSB'; then
if readelf -d "$1" | grep -q 'Shared library'; then
echo "File: $file"
# this is done twice rather than storing in a bash variable because
Expand Down
14 changes: 8 additions & 6 deletions script/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,16 @@ if ! [ -d "$DESTINATION" ]; then
fi

if [ "$TARGET_PLATFORM" == "ubuntu" ]; then
GZIP_FILE="dugite-native-$VERSION-$BUILD_HASH-ubuntu-$TARGET_ARCH.tar.gz"
LZMA_FILE="dugite-native-$VERSION-$BUILD_HASH-ubuntu-$TARGET_ARCH.lzma"
GZIP_FILE="dugite-native-$VERSION-$BUILD_HASH-ubuntu.tar.gz"
LZMA_FILE="dugite-native-$VERSION-$BUILD_HASH-ubuntu.lzma"
elif [ "$TARGET_PLATFORM" == "macOS" ]; then
GZIP_FILE="dugite-native-$VERSION-$BUILD_HASH-macOS-$TARGET_ARCH.tar.gz"
LZMA_FILE="dugite-native-$VERSION-$BUILD_HASH-macOS-$TARGET_ARCH.lzma"
if [ "$TARGET_ARCH" -eq "64" ]; then ARCH="x64"; else ARCH="arm64"; fi
GZIP_FILE="dugite-native-$VERSION-$BUILD_HASH-macOS-$ARCH.tar.gz"
LZMA_FILE="dugite-native-$VERSION-$BUILD_HASH-macOS-$ARCH.lzma"
elif [ "$TARGET_PLATFORM" == "win32" ]; then
GZIP_FILE="dugite-native-$VERSION-$BUILD_HASH-windows-$TARGET_ARCH.tar.gz"
LZMA_FILE="dugite-native-$VERSION-$BUILD_HASH-windows-$TARGET_ARCH.lzma"
if [ "$TARGET_ARCH" -eq "64" ]; then ARCH="x64"; else ARCH="x86"; fi
GZIP_FILE="dugite-native-$VERSION-$BUILD_HASH-windows-$ARCH.tar.gz"
LZMA_FILE="dugite-native-$VERSION-$BUILD_HASH-windows-$ARCH.lzma"
else
echo "Unable to package Git for platform $TARGET_PLATFORM"
exit 1
Expand Down
9 changes: 0 additions & 9 deletions script/update-git-lfs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ function getArch(fileName: string) {
if (fileName.match(/-386-/)) {
return 'x86'
}
if (fileName.match(/-arm64-/)) {
return 'arm64'
}
if (fileName.match(/-arm-/)) {
return 'arm'
}

throw new Error(`Unable to find arch for file: ${fileName}`)
}
Expand Down Expand Up @@ -88,9 +82,6 @@ async function run(): Promise<boolean> {

const files = [
`git-lfs-linux-amd64-${version}.tar.gz`,
`git-lfs-linux-386-${version}.tar.gz`,
`git-lfs-linux-arm64-${version}.tar.gz`,
`git-lfs-linux-arm-${version}.tar.gz`,
`git-lfs-windows-386-${version}.zip`,
`git-lfs-windows-amd64-${version}.zip`,
]
Expand Down