소스 검색

Ports: Add default .gitconfig for Git port

This stops git from asking us to configure a username and email when we
try to commit.
Itamar 4 년 전
부모
커밋
e5ceec8621
4개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      Ports/.gitignore
  2. 1 0
      Ports/git/.gitignore
  3. 3 0
      Ports/git/default_gitconfig
  4. 5 0
      Ports/git/package.sh

+ 1 - 0
Ports/.gitignore

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

+ 1 - 0
Ports/git/.gitignore

@@ -0,0 +1 @@
+!default_gitconfig

+ 3 - 0
Ports/git/default_gitconfig

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

+ 5 - 0
Ports/git/package.sh

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