We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1db168e commit 1db25aaCopy full SHA for 1db25aa
t/t3404-rebase-interactive.sh
@@ -1240,4 +1240,16 @@ test_expect_success 'static check of bad SHA-1' '
1240
test E = $(git cat-file commit HEAD | sed -ne \$p)
1241
'
1242
1243
+test_expect_failure 'editor saves as CR/LF' '
1244
+ git checkout -b with-crlf &&
1245
+ write_script add-crs.sh <<-\EOF &&
1246
+ sed -e "s/\$/Q/" <"$1" | tr Q "\\015" >"$1".new &&
1247
+ mv -f "$1".new "$1"
1248
+ EOF
1249
+ (
1250
+ test_set_editor "$(pwd)/add-crs.sh" &&
1251
+ git rebase -i HEAD^
1252
+ )
1253
+'
1254
+
1255
test_done
0 commit comments