Skip to content

Commit b3c271c

Browse files
Revert "Ubuntu & universat: Install git (patched) form opt feeds"
This reverts commit 77df542.
1 parent 77df542 commit b3c271c

File tree

5 files changed

+15
-1
lines changed

5 files changed

+15
-1
lines changed

src/base-ubuntu/.devcontainer/devcontainer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
"userUid": "1000",
1111
"userGid": "1000",
1212
"upgradePackages": "true"
13+
},
14+
"ghcr.io/devcontainers/features/git:1": {
15+
"version": "latest",
16+
"ppa": "false"
1317
}
1418
},
1519
// Use 'forwardPorts' to make a list of ports inside the container available locally.

src/base-ubuntu/test-project/test.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ check "zsh theme symlink" test -e $HOME/.oh-my-zsh/custom/themes/codespaces.zsh-
1212
check "git" git --version
1313
check "git-location" sh -c "which git | grep /usr/local/bin/git"
1414

15+
git_version=$(git --version)
16+
check-version-ge "git-requirement" "${git_version}" "git version 2.39.1"
17+
1518
check "set-git-config-user-name" sh -c "sudo git config --system user.name devcontainers"
1619
check "gitconfig-file-location" sh -c "ls /etc/gitconfig"
1720
check "gitconfig-contains-name" sh -c "cat /etc/gitconfig | grep 'name = devcontainers'"

src/universal/.devcontainer/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ RUN LANG="C.UTF-8" \
1616
&& apt-get update \
1717
&& apt-get upgrade -y \
1818
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
19-
git \
2019
make \
2120
unzip \
2221
# The tools in this package are used when installing packages for Python

src/universal/.devcontainer/devcontainer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@
6262
"ghcr.io/devcontainers/features/kubectl-helm-minikube:1": {
6363
"version": "latest"
6464
},
65+
"ghcr.io/devcontainers/features/git:1": {
66+
"version": "latest",
67+
"ppa": "false"
68+
},
6569
"ghcr.io/devcontainers/features/go:1": {
6670
"version": "latest"
6771
},
@@ -71,6 +75,7 @@
7175
},
7276
"overrideFeatureInstallOrder": [
7377
"ghcr.io/devcontainers/features/common-utils",
78+
"ghcr.io/devcontainers/features/git",
7479
"ghcr.io/devcontainers/features/dotnet",
7580
"ghcr.io/devcontainers/features/hugo",
7681
"ghcr.io/devcontainers/features/node",

src/universal/test-project/test.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ checkCommon
99
check "git" git --version
1010
check "git-location" sh -c "which git | grep /usr/local/bin/git"
1111

12+
git_version=$(git --version)
13+
check-version-ge "git-requirement" "${git_version}" "git version 2.39.1"
14+
1215
check "set-git-config-user-name" sh -c "sudo git config --system user.name devcontainers"
1316
check "gitconfig-file-location" sh -c "ls /etc/gitconfig"
1417
check "gitconfig-contains-name" sh -c "cat /etc/gitconfig | grep 'name = devcontainers'"

0 commit comments

Comments
 (0)