1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:17:35 +00:00

Ports: Add default .gitconfig for Git port

This stops git from asking us to configure a username and email when we
try to commit.
This commit is contained in:
Itamar 2020-09-10 22:24:25 +03:00 committed by Andreas Kling
parent 82696078b0
commit e5ceec8621
4 changed files with 10 additions and 0 deletions

1
Ports/.gitignore vendored
View file

@ -2,3 +2,4 @@
!*/package.sh !*/package.sh
!*/patches !*/patches
!*/patches/* !*/patches/*
!*/.gitignore

1
Ports/git/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
!default_gitconfig

View file

@ -0,0 +1,3 @@
[user]
email = anon
name = anon

View file

@ -11,6 +11,11 @@ build() {
run make strip run make strip
} }
post_install() {
mkdir -p "$SERENITY_ROOT"/Build/Root/home/anon
cp "$workdir"/../default_gitconfig "$SERENITY_ROOT"/Build/Root/home/anon/.gitconfig
}
export NO_OPENSSL=1 export NO_OPENSSL=1
export ac_cv_fread_reads_directories=no export ac_cv_fread_reads_directories=no
export ac_cv_snprintf_returns_bogus=no export ac_cv_snprintf_returns_bogus=no