summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiaofeng Wang <1237906+wasphin@users.noreply.github.com>2020-06-02 13:41:25 +0800
committerPanu Matilainen <pmatilai@redhat.com>2020-06-23 15:12:11 +0300
commit582a9a2ed9eaad78d79657e467c646f00bb6ad67 (patch)
tree3164a8d47934eea921bc8500a6fe2a36f3e88e02
parente02863df85334eeb7c7c2948f30f346626ba26b3 (diff)
downloadrpm-582a9a2ed9eaad78d79657e467c646f00bb6ad67.tar.gz
macros: force add files to git index
It's rarely the case that the user may set global ``core.excludesfile``, ``git add .`` may not add all the files as expect. It will fail to build if the excluded files are patch-needed. (cherry picked from commit 1e0376f869266e89f9b17c305790d4eea1aa4263)
-rw-r--r--macros.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/macros.in b/macros.in
index 3464e4c6e..bfe40277a 100644
--- a/macros.in
+++ b/macros.in
@@ -1238,7 +1238,7 @@ package or when debugging this package.\
%{__git} init %{-q}\
%{__git} config user.name "%{__scm_username}"\
%{__git} config user.email "%{__scm_usermail}"\
-%{__git} add .\
+%{__git} add --force .\
%{__git} commit %{-q} --allow-empty -a\\\
--author "%{__scm_author}" -m "%{NAME}-%{VERSION} base"