From: Panu Matilainen Date: Mon, 28 Jan 2013 20:31:30 +0000 (+0200) Subject: Setup git identity in __scm_setup_git (RhBug:905002) X-Git-Tag: rpm-4.11.0-release~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bd587d5bff20c0eb10d4cb14e29ef948231df142;p=platform%2Fupstream%2Frpm.git Setup git identity in __scm_setup_git (RhBug:905002) - For some reason on my own account git keeps functioning even if I remove its configuration, but on a newly created account git commit bails out with "Please tell me who you are" unless we set the (per-repo) configuration here. (cherry picked from commit 321a87d789bb090c88c541f7f158ae922ddee3ff) --- diff --git a/macros.in b/macros.in index 1f27e21..319be28 100644 --- a/macros.in +++ b/macros.in @@ -1057,6 +1057,8 @@ done \ # Git %__scm_setup_git(q)\ %{__git} init %{-q}\ +%{__git} config user.name "%{__scm_username}"\ +%{__git} config user.email "%{__scm_usermail}"\ %{__git} add .\ %{__git} commit %{-q} -a\\\ --author "%{__scm_author}" -m "%{name}-%{version} base"