Commits

Anonymous committed 4035b46

t4015: work-around here document problem on Cygwin.

Signed-off-by: Junio C Hamano <junio@twinsun.com>

  • Participants
  • Parent commits 23bed43

Comments (0)

Files changed (1)

File t/t4015-diff-whitespace.sh

 git-diff -b > out
 test_expect_success "Ray's example with -b" 'diff -u expect out'
 
-cat << EOF > x
+tr 'Q' '\015' << EOF > x
 whitespace at beginning
 whitespace change
 whitespace in the middle
 whitespace at end
 unchanged line
-CR at end
+CR at endQ
 EOF
 
 git-update-index x
 CR at end
 EOF
 
-cat << EOF > expect
+tr 'Q' '\015' << EOF > expect
 diff --git a/x b/x
 index d99af23..8b32fb5 100644
 --- a/x
 +white space in the middle
 +whitespace at end  
  unchanged line
--CR at end
+-CR at endQ
 +CR at end
 EOF
 git-diff > out
 git-diff -w > out
 test_expect_success 'another test, with -w' 'diff -u expect out'
 
-cat << EOF > expect
+tr 'Q' '\015' << EOF > expect
 diff --git a/x b/x
 index d99af23..8b32fb5 100644
 --- a/x
 +white space in the middle
 +whitespace at end  
  unchanged line
--CR at end
+-CR at endQ
 +CR at end
 EOF
 git-diff -b > out