copy-patches: mask some differences in Laszlo's git setup

Restore these git defaults:
- core.abbrev=9
- -O/dev/null

Taken from libguestfs dist-git commit 975798ac9b5e.

resolves: rhbz#2034240
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
Laszlo Ersek 2021-12-23 14:59:44 +01:00
parent 8190ec8540
commit 1e9c9bbe05
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ git rm -f [0-9]*.patch ||:
rm -f [0-9]*.patch
# Get the patches.
(cd $git_checkout; rm -f [0-9]*.patch; git format-patch -N --submodule=diff $tag)
(cd $git_checkout; rm -f [0-9]*.patch; git -c core.abbrev=9 format-patch -O/dev/null -N --submodule=diff $tag)
mv $git_checkout/[0-9]*.patch .
# Remove any not to be applied.