Accepting request 374295 from home:olh:branches:Virtualization
Handle signatures added by git format-patch properly OBS-URL: https://build.opensuse.org/request/show/374295 OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=288
This commit is contained in:
parent
a8cd2c8daa
commit
e3ed4b4b7f
@ -60,7 +60,9 @@ rm -rf $GIT_DIR
|
|||||||
# Process patches to eliminate useless differences: limit file names to 40 chars
|
# Process patches to eliminate useless differences: limit file names to 40 chars
|
||||||
# before extension and remove git signature. ('30' below gets us past dir prefix)
|
# before extension and remove git signature. ('30' below gets us past dir prefix)
|
||||||
for i in $CMP_DIR/*; do
|
for i in $CMP_DIR/*; do
|
||||||
head -n -3 $i > $CMP_DIR/${i:30:40}.patch
|
# format-patch may append a signature, which per default contains the git version
|
||||||
|
# wipe everything starting from the signature tag
|
||||||
|
sed '/^-- $/Q' $i > $CMP_DIR/${i:30:40}.patch
|
||||||
rm $i
|
rm $i
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user