mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-12-23 14:39:24 -05:00
Container: Find git config at XDG_CONFIG_HOME
This commit is contained in:
parent
41bc2deded
commit
3827a096da
@ -2,6 +2,6 @@
|
||||
|
||||
# from https://android.googlesource.com/platform/build/+/master/tools/docker
|
||||
# Copy your host gitconfig, or create a stripped down version
|
||||
cp ~/.gitconfig gitconfig
|
||||
cp ~/.gitconfig gitconfig || cp $XDG_CONFIG_HOME/git/config gitconfig
|
||||
docker build --build-arg userid=$(id -u) --build-arg groupid=$(id -g) --build-arg username=$(id -un) -t android-build-fedora .
|
||||
rm gitconfig
|
||||
|
2
Container/build-image-podman.sh
Normal file → Executable file
2
Container/build-image-podman.sh
Normal file → Executable file
@ -2,6 +2,6 @@
|
||||
|
||||
# from https://android.googlesource.com/platform/build/+/master/tools/docker
|
||||
# Copy your host gitconfig, or create a stripped down version
|
||||
cp ~/.gitconfig gitconfig
|
||||
cp ~/.gitconfig gitconfig || cp $XDG_CONFIG_HOME/git/config gitconfig
|
||||
podman build --build-arg userid=$(id -u) --build-arg groupid=$(id -g) --build-arg username=$(id -un) -t android-build-fedora .
|
||||
rm gitconfig
|
||||
|
Loading…
Reference in New Issue
Block a user