Use git index in %autosetup (RhBug:1059285)

- Without --index in apply, any file additions will not be committed and
  in case the patch contains *only* file addition the macro can fail
  completely (empty commit). With --index there's no need for -a in
  commit either.
This commit is contained in:
Stanislav Ochotnicky 2014-01-30 11:21:18 +02:00 committed by Panu Matilainen
parent f6481343d4
commit 3f69897743
1 changed files with 2 additions and 2 deletions

View File

@ -1075,8 +1075,8 @@ done \
--author "%{__scm_author}" -m "%{name}-%{version} base"
%__scm_apply_git(qp:m:)\
%{__git} apply %{-p:-p%{-p*}} -\
%{__git} commit %{-q} -a -m %{-m*} --author "%{__scm_author}"
%{__git} apply --index %{-p:-p%{-p*}} -\
%{__git} commit %{-q} -m %{-m*} --author "%{__scm_author}"
# Quilt
%__scm_setup_quilt(q) %{nil}