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/t9103-git-svn-tracked-directory-removed.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 / t9103-git-svn-tracked-directory-removed.sh` 41 lines ยท 969 bytes Raw Blame History 1 #!/bin/sh 2 # 3 # Copyright (c) 2007 Eric Wong 4 # 5 6 test_description='git svn tracking removed top-level path' 7 . ./lib-git-svn.sh 8 9 test_expect_success 'make history for tracking' ' 10 mkdir import && 11 mkdir import/trunk && 12 echo hello >> import/trunk/README && 13 svn_cmd import -m initial import "$svnrepo" && 14 rm -rf import && 15 svn_cmd co "$svnrepo"/trunk trunk && 16 echo bye bye >> trunk/README && 17 svn_cmd rm -m "gone" "$svnrepo"/trunk && 18 rm -rf trunk && 19 mkdir trunk && 20 echo "new" > trunk/FOLLOWME && 21 svn_cmd import -m "new trunk" trunk "$svnrepo"/trunk 22 ' 23 24 test_expect_success 'clone repo with git' ' 25 git svn clone -s "$svnrepo" x && 26 test_path_is_file x/FOLLOWME && 27 test_path_is_missing x/README 28 ' 29 30 test_expect_success 'make sure r2 still has old file' ' 31 ( 32 cd x && 33 test -n "$(git svn find-rev r1)" && 34 git reset --hard "$(git svn find-rev r1)" && 35 test_path_is_file README && 36 test_path_is_missing FOLLOWME && 37 test -z "$(git svn find-rev r2)" 38 ) 39 ' 40 41 test_done