#!/bin/sh # # Copyright (c) 2010 Andreas Gruenbacher # setglobal test_description = ''git apply filename consistency check'' source ./test-lib.sh test_expect_success setup ' cat > bad1.patch < bad2.patch <err && test_i18ngrep "inconsistent new filename" err && test_must_fail git apply bad2.patch 2>err && test_i18ngrep "inconsistent old filename" err ' test_done