Setup git identity in __scm_setup_git (RhBug:905002)
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 28 Jan 2013 20:31:30 +0000 (22:31 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 29 Jan 2013 06:15:18 +0000 (08:15 +0200)
- 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)

macros.in

index 1f27e21..319be28 100644 (file)
--- 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"