File tree Expand file tree Collapse file tree 5 files changed +15
-1
lines changed Expand file tree Collapse file tree 5 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ check "zsh theme symlink" test -e $HOME/.oh-my-zsh/custom/themes/codespaces.zsh-
1212check " git" git --version
1313check " 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+
1518check " set-git-config-user-name" sh -c " sudo git config --system user.name devcontainers"
1619check " gitconfig-file-location" sh -c " ls /etc/gitconfig"
1720check " gitconfig-contains-name" sh -c " cat /etc/gitconfig | grep 'name = devcontainers'"
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 },
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" ,
Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ checkCommon
99check " git" git --version
1010check " 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+
1215check " set-git-config-user-name" sh -c " sudo git config --system user.name devcontainers"
1316check " gitconfig-file-location" sh -c " ls /etc/gitconfig"
1417check " gitconfig-contains-name" sh -c " cat /etc/gitconfig | grep 'name = devcontainers'"
You can’t perform that action at this time.
0 commit comments