Skip to content

Commit 0f7ef09

Browse files
authored
Merge pull request #553 from infosiftr/git-for-windows
Update Git for Windows to 2.48.1
2 parents 423df72 + 67346f8 commit 0f7ef09

File tree

7 files changed

+63
-35
lines changed

7 files changed

+63
-35
lines changed

1.23/windows/windowsservercore-1809/Dockerfile

+9-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

1.23/windows/windowsservercore-ltsc2022/Dockerfile

+9-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

1.23/windows/windowsservercore-ltsc2025/Dockerfile

+9-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

1.24/windows/windowsservercore-1809/Dockerfile

+9-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

1.24/windows/windowsservercore-ltsc2022/Dockerfile

+9-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

1.24/windows/windowsservercore-ltsc2025/Dockerfile

+9-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dockerfile-windows-servercore.template

+9-5
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ FROM mcr.microsoft.com/windows/{{ env.windowsVariant }}:{{ env.windowsRelease }}
44
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
55

66
# install MinGit (especially for "go get")
7-
# https://blogs.msdn.microsoft.com/visualstudioalm/2016/09/03/whats-new-in-git-for-windows-2-10/
8-
# "Essentially, it is a Git for Windows that was stripped down as much as possible without sacrificing the functionality in which 3rd-party software may be interested."
9-
# "It currently requires only ~45MB on disk."
10-
ENV GIT_VERSION 2.23.0
7+
# https://github.com/git-for-windows/git/wiki/MinGit
8+
# https://gitforwindows.org/
9+
# https://github.com/git-for-windows/git/releases
10+
# TODO in some future release, consider the BusyBox variant? maybe only once https://github.com/git-for-windows/git/issues/1439 is officially closed?
11+
ENV GIT_VERSION 2.48.1
1112
ENV GIT_TAG v${GIT_VERSION}.windows.1
1213
ENV GIT_DOWNLOAD_URL https://github.com/git-for-windows/git/releases/download/${GIT_TAG}/MinGit-${GIT_VERSION}-64-bit.zip
13-
ENV GIT_DOWNLOAD_SHA256 8f65208f92c0b4c3ae4c0cf02d4b5f6791d539cd1a07b2df62b7116467724735
14+
ENV GIT_DOWNLOAD_SHA256 11e8f462726827acccc7ecdad541f2544cbe5506d70fef4fa1ffac7c16288709
1415
# steps inspired by "chcolateyInstall.ps1" from "git.install" (https://chocolatey.org/packages/git.install)
1516
RUN Write-Host ('Downloading {0} ...' -f $env:GIT_DOWNLOAD_URL); \
1617
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
@@ -36,6 +37,9 @@ RUN Write-Host ('Downloading {0} ...' -f $env:GIT_DOWNLOAD_URL); \
3637
git version; \
3738
\
3839
Write-Host 'Complete.';
40+
# https://blogs.msdn.microsoft.com/visualstudioalm/2016/09/03/whats-new-in-git-for-windows-2-10/
41+
# "Essentially, it is a Git for Windows that was stripped down as much as possible without sacrificing the functionality in which 3rd-party software may be interested."
42+
# "It currently requires only ~45MB on disk."
3943

4044
# for 1.17+, we'll follow the (new) Go upstream default for install (https://golang.org/cl/283600), which frees up C:\go to be the default GOPATH and thus match the Linux images more closely (https://github.com/docker-library/golang/issues/288)
4145
ENV GOPATH C:\\go

0 commit comments

Comments
 (0)