summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2015-09-01 15:25:31 +0100
committerRichard Maw <richard.maw@codethink.co.uk>2015-09-01 15:25:31 +0100
commit5ad8982cfab2581d4d76e9dec9648d9307ebfe5f (patch)
treeb0bb2cf1ac816721403228d5d25ab9abcca68afb
parent9ce0a8102cc5b99eb7211bf60a6f46ce7f3b68e0 (diff)
downloadfirehose-5ad8982cfab2581d4d76e9dec9648d9307ebfe5f.tar.gz
Fix firehose git config in firehose.configure
Change-Id: I09af760104ff5a25a374a1d74d7d0212906c171e
-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"