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/t9113-git-svn-dcommit-new-file.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 / t9113-git-svn-dcommit-new-file.sh` 35 lines ยท 940 bytes Raw Blame History 1 #!/bin/sh 2 # 3 # Copyright (c) 2007 Eric Wong 4 # 5 6 # Don't run this test by default unless the user really wants it 7 # I don't like the idea of taking a port and possibly leaving a 8 # daemon running on a users system if the test fails. 9 # Not all git users will need to interact with SVN. 10 11 test_description='git svn dcommit new files over svn:// test' 12 13 . ./lib-git-svn.sh 14 15 require_svnserve 16 17 test_expect_success 'start tracking an empty repo' ' 18 svn_cmd mkdir -m "empty dir" "$svnrepo"/empty-dir && 19 echo "[general]" > "$rawsvnrepo"/conf/svnserve.conf && 20 echo anon-access = write >> "$rawsvnrepo"/conf/svnserve.conf && 21 start_svnserve && 22 git svn init svn://127.0.0.1:$SVNSERVE_PORT && 23 git svn fetch 24 ' 25 26 test_expect_success 'create files in new directory with dcommit' " 27 mkdir git-new-dir && 28 echo hello > git-new-dir/world && 29 git update-index --add git-new-dir/world && 30 git commit -m hello && 31 start_svnserve && 32 git svn dcommit 33 " 34 35 test_done