summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2013-01-28 22:31:30 +0200
committerPanu Matilainen <pmatilai@redhat.com>2013-01-29 08:15:18 +0200
commitbd587d5bff20c0eb10d4cb14e29ef948231df142 (patch)
tree8ecb5ec744d2f310f2f0501f9bff0defee7f8316
parentd16005305554c30c637428240c76d8292c2122d8 (diff)
downloadlibrpm-tizen-bd587d5bff20c0eb10d4cb14e29ef948231df142.tar.gz
librpm-tizen-bd587d5bff20c0eb10d4cb14e29ef948231df142.tar.bz2
librpm-tizen-bd587d5bff20c0eb10d4cb14e29ef948231df142.zip
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)
-rw-r--r--macros.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/macros.in b/macros.in
index 1f27e2146..319be283a 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"