summaryrefslogtreecommitdiff
path: root/Ports/git
diff options
context:
space:
mode:
authorItamar <itamar8910@gmail.com>2020-09-10 22:24:25 +0300
committerAndreas Kling <kling@serenityos.org>2020-09-15 21:43:29 +0200
commite5ceec8621b081eea8bd061eab5c3fc3b0e784f6 (patch)
treef202c8cbfa0929c38b6a26bb1d5afc746da40a0e /Ports/git
parent82696078b027c78f480698cfa4f73a2de5052222 (diff)
downloadserenity-e5ceec8621b081eea8bd061eab5c3fc3b0e784f6.zip
Ports: Add default .gitconfig for Git port
This stops git from asking us to configure a username and email when we try to commit.
Diffstat (limited to 'Ports/git')
-rw-r--r--Ports/git/.gitignore1
-rw-r--r--Ports/git/default_gitconfig3
-rwxr-xr-xPorts/git/package.sh5
3 files changed, 9 insertions, 0 deletions
diff --git a/Ports/git/.gitignore b/Ports/git/.gitignore
new file mode 100644
index 0000000000..7e563d9345
--- /dev/null
+++ b/Ports/git/.gitignore
@@ -0,0 +1 @@
+!default_gitconfig
diff --git a/Ports/git/default_gitconfig b/Ports/git/default_gitconfig
new file mode 100644
index 0000000000..2eeb9a6e33
--- /dev/null
+++ b/Ports/git/default_gitconfig
@@ -0,0 +1,3 @@
+[user]
+ email = anon
+ name = anon
diff --git a/Ports/git/package.sh b/Ports/git/package.sh
index 2a98e4eb41..82bcc68b1b 100755
--- a/Ports/git/package.sh
+++ b/Ports/git/package.sh
@@ -11,6 +11,11 @@ build() {
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 ac_cv_fread_reads_directories=no
export ac_cv_snprintf_returns_bogus=no