Container: Find git config at XDG_CONFIG_HOME

This commit is contained in:
ryneeverett 2024-07-26 16:53:46 -04:00 committed by SkewedZeppelin
parent 41bc2deded
commit 3827a096da
2 changed files with 2 additions and 2 deletions

View 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
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
View 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