# 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. # Test if git diffs can change file modes . $srcdir/test-lib.sh require cat require sed use_local_patch use_tmpdir # ============================================================== cat > f.diff < f echo old > g chmod 644 f g check 'patch -p1 < f.diff' < g.diff <