summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firehose.configure9
1 files changed, 2 insertions, 7 deletions
diff --git a/firehose.configure b/firehose.configure
index cde8b98..575dc1c 100644
--- a/firehose.configure
+++ b/firehose.configure
@@ -52,11 +52,6 @@ git-username = $GIT_USERNAME
git-email = $GIT_EMAIL
EOF
-# Become firehose user
-chroot "$ROOT" sudo -u "$GERRIT_USER" -s
-
# Configure a git identity for Firehose
-cat >>"$ROOT/home/firehose/.gitconfig" <<EOF
-git config --global user.name "$GIT_USER"
-git config --global user.email "$GIT_EMAIL"
-EOF
+chroot "$ROOT" sudo -u "$GERRIT_USER" git config -f "/home/firehose/.gitconfig" user.name "$GIT_USER"
+chroot "$ROOT" sudo -u "$GERRIT_USER" git config -f "/home/firehose/.gitconfig" user.email "$GIT_EMAIL"