Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/t9169-git-svn-dcommit-crlf.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / t9169-git-svn-dcommit-crlf.sh` 30 lines ยท 757 bytes Raw Blame History 1 #!/bin/sh 2 3 test_description='git svn dcommit CRLF' 4 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main 5 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME 6 7 . ./lib-git-svn.sh 8 9 test_expect_success 'setup commit repository' ' 10 svn_cmd mkdir -m "$test_description" "$svnrepo/dir" && 11 git svn clone "$svnrepo" work && 12 ( 13 cd work && 14 echo foo >>foo && 15 git update-index --add foo && 16 printf "a\\r\\n\\r\\nb\\r\\nc\\r\\n" >cmt && 17 p=$(git rev-parse HEAD) && 18 t=$(git write-tree) && 19 cmt=$(git commit-tree -p $p $t out && 22 test_cmp cmt out && 23 git svn dcommit && 24 printf "a\\n\\nb\\nc\\n" >exp && 25 git cat-file commit HEAD | sed -ne 6,9p >out && 26 test_cmp exp out 27 ) 28 ' 29 30 test_done