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). |