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

Unified Diff: enter_chroot.sh

Issue 3352008: Configure git author name and git author email in .gitconfig. (Closed) Base URL: http://git.chromium.org/git/crosutils.git
Patch Set: Replace all user.name / user.email settings. Also, cd /tmp to avoid repo-specific settings. Created 10 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: enter_chroot.sh
diff --git a/enter_chroot.sh b/enter_chroot.sh
index a72e7ac287fa23735f3feb66af64eb3c0a0a7351..5b412f4d6e5646c321ef108be76611b1c94939b1 100755
--- a/enter_chroot.sh
+++ b/enter_chroot.sh
@@ -285,6 +285,12 @@ if [ -d "$HOME/.subversion" ]; then
fi
fi
+# Configure committer username and email in chroot .gitconfig
+git config -f ${FLAGS_chroot}/home/${USER}/.gitconfig --replace-all user.name \
+ "$(cd /tmp; git var GIT_COMMITTER_IDENT | sed -e 's/ *<.*//')"
+git config -f ${FLAGS_chroot}/home/${USER}/.gitconfig --replace-all user.email \
+ "$(cd /tmp; git var GIT_COMMITTER_IDENT | sed -e 's/.*<\([^>]*\)>.*/\1/')"
+
# Run command or interactive shell. Also include the non-chrooted path to
# the source trunk for scripts that may need to print it (e.g.
# build_image.sh).
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698