Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(498)

Unified Diff: ports/devenv/bashrc

Issue 1071783003: Add root certificate bundle to curl package, and improve git default setup. (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ports/devenv/bashrc
diff --git a/ports/devenv/bashrc b/ports/devenv/bashrc
index f68866051dcc91b716e88c1aedae186a562baa59..5f9a500a73cb1bbdf8bbf7a8958809d1d66608e6 100755
--- a/ports/devenv/bashrc
+++ b/ports/devenv/bashrc
@@ -12,6 +12,13 @@ source /mnt/http/setup-environment
/mnt/http/install-base-packages.sh
+# Setup default .gitconfig if it doesn't already exist.
Sam Clegg 2015/04/08 23:34:59 A bit more info here about why its needed and a TO
bradn 2015/04/09 00:07:21 Done.
+if [ ! -e /home/user/.gitconfig ]; then
+ git config --global init.templatedir ""
+ git config --global user.name "John Doe"
+ git config --global user.email "john.doe@foo.com"
+fi
+
# Setup environment again, to rescan the packages added.
source /mnt/http/setup-environment

Powered by Google App Engine
This is Rietveld 408576698