diff options
author | Xiaofeng Wang <1237906+wasphin@users.noreply.github.com> | 2020-06-02 13:41:25 +0800 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2020-06-23 15:12:11 +0300 |
commit | 582a9a2ed9eaad78d79657e467c646f00bb6ad67 (patch) | |
tree | 3164a8d47934eea921bc8500a6fe2a36f3e88e02 | |
parent | e02863df85334eeb7c7c2948f30f346626ba26b3 (diff) | |
download | rpm-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.in | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" |