mirror of
https://https.git.savannah.gnu.org/git/patch.git
synced 2026-01-27 01:44:34 +00:00
Since the code is identical when just checking if a utility is present on the system or not, we can factorize it. Signed-off-by: Quentin Casasnovas <quentin.casasnovas@oracle.com>
30 lines
665 B
Plaintext
30 lines
665 B
Plaintext
# Copyright (C) 2010-2012 Free Software Foundation, Inc.
|
|
#
|
|
# Copying and distribution of this file, with or without modification,
|
|
# in any medium, are permitted without royalty provided the copyright
|
|
# notice and this notice are preserved.
|
|
|
|
. $srcdir/test-lib.sh
|
|
|
|
require cat
|
|
use_local_patch
|
|
use_tmpdir
|
|
|
|
cat > f.diff <<EOF
|
|
diff --git a/zeroes b/zeroes
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..06d7405020018ddf3cacee90fd4af10487da3d20
|
|
GIT binary patch
|
|
literal 1024
|
|
ScmZQz7zLvtFd70QH3R?z00031
|
|
|
|
literal 0
|
|
HcmV?d00001
|
|
|
|
EOF
|
|
|
|
check 'patch -p1 < f.diff || echo "Status: $?"' <<EOF
|
|
File zeroes: git binary diffs are not supported.
|
|
Status: 1
|
|
EOF
|