Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
devcontainer-features
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eazydevelop-devcontainer-temp
devcontainer-features
Commits
74dd2710
Unverified
Commit
74dd2710
authored
Jan 11, 2023
by
Samruddhi Khandale
Committed by
GitHub
Jan 11, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Git: Use sysconfdir=/etc for git built from source (#395)
* Git: Adds a new 'addGitConfigSymlink' option * Use sysconfdir
parent
e67f4dc0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
devcontainer-feature.json
src/git/devcontainer-feature.json
+1
-1
install.sh
src/git/install.sh
+1
-1
install_git_from_src.sh
test/git/install_git_from_src.sh
+8
-0
No files found.
src/git/devcontainer-feature.json
View file @
74dd2710
{
"id"
:
"git"
,
"version"
:
"1.1.
3
"
,
"version"
:
"1.1.
4
"
,
"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."
,
...
...
src/git/install.sh
View file @
74dd2710
...
...
@@ -144,7 +144,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
USE_LIBPCRE
=
YesPlease
prefix
=
/usr/local
all
&&
make
-s
USE_LIBPCRE
=
YesPlease
prefix
=
/usr/local
install
2>&1
make
-s
USE_LIBPCRE
=
YesPlease
prefix
=
/usr/local
sysconfdir
=
/etc all
&&
make
-s
USE_LIBPCRE
=
YesPlease
prefix
=
/usr/local
sysconfdir
=
/etc
install
2>&1
rm
-rf
/tmp/git-
${
GIT_VERSION
}
rm
-rf
/var/lib/apt/lists/
*
echo
"Done!"
test/git/install_git_from_src.sh
View file @
74dd2710
...
...
@@ -12,5 +12,13 @@ cd /tmp && git clone https://github.com/devcontainers/feature-starter.git
cd
feature-starter
check
"perl"
bash
-c
"git -c grep.patternType=perl grep -q 'a.+b'"
check
"git-location"
bash
-c
"which git | grep /usr/local/bin/git"
check
"set-git-config-user-name"
bash
-c
"git config --system user.name devcontainers"
check
"gitconfig-file-location"
bash
-c
"ls /etc/gitconfig"
check
"gitconfig-contains-name"
bash
-c
"cat /etc/gitconfig | grep 'name = devcontainers'"
check
"usr-local-etc-config-does-not-exist"
test
!
-f
"/usr/local/etc/gitconfig"
# Report result
reportResults
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment