aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamruddhi Khandale <skhandale@microsoft.com>2022-11-10 23:51:37 +0300
committerSamruddhi Khandale <skhandale@microsoft.com>2022-11-10 23:51:37 +0300
commit666efec26e33fa25316a7884f196a9e74f448b8d (patch)
treeddb36bc9ebcd3de313ef11f3daeafba020d98f71
parent3020d6da64798ee994d407ffd3ce3f800f6dff92 (diff)
change git source location
-rw-r--r--src/git/devcontainer-feature.json2
-rwxr-xr-xsrc/git/install.sh2
-rw-r--r--test/git/install_git_from_src.sh1
3 files changed, 3 insertions, 2 deletions
diff --git a/src/git/devcontainer-feature.json b/src/git/devcontainer-feature.json
index ef2b856..7d6d14e 100644
--- a/src/git/devcontainer-feature.json
+++ b/src/git/devcontainer-feature.json
@@ -1,6 +1,6 @@
{
"id": "git",
- "version": "1.0.5",
+ "version": "1.0.6",
"name": "Git (from source)",
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/git",
"description": "Install an up-to-date version of Git, built from source as needed. Useful for when you want the latest and greatest features. Auto-detects latest stable version and installs needed dependencies.",
diff --git a/src/git/install.sh b/src/git/install.sh
index 153b4e1..20f43d1 100755
--- a/src/git/install.sh
+++ b/src/git/install.sh
@@ -151,7 +151,7 @@ echo "Downloading source for ${GIT_VERSION}..."
curl -sL https://github.com/git/git/archive/v${GIT_VERSION}.tar.gz | tar -xzC /tmp 2>&1
echo "Building..."
cd /tmp/git-${GIT_VERSION}
-make -s prefix=/usr/local all && make -s prefix=/usr/local install 2>&1
+make -s prefix=/usr all && make -s prefix=/usr install 2>&1
rm -rf /tmp/git-${GIT_VERSION}
rm -rf /var/lib/apt/lists/*
echo "Done!"
diff --git a/test/git/install_git_from_src.sh b/test/git/install_git_from_src.sh
index 226278a..ccae1b5 100644
--- a/test/git/install_git_from_src.sh
+++ b/test/git/install_git_from_src.sh
@@ -5,6 +5,7 @@ set -e
# Optional: Import test library
source dev-container-features-test-lib
+check "source-dir" bash -c "which git | grep /usr/bin/git"
check "version" git --version
check "gettext" dpkg-query -l gettext