#!/bin/sh global test_description := ''test moved svn branch with missing empty files'' source ./lib-git-svn.sh test_expect_success 'load svn dumpfile' ' svnadmin load "$rawsvnrepo" < "${TEST_DIRECTORY}/t9135/svn.dump" ' test_expect_success 'clone using git svn' 'git svn clone -s "$svnrepo" x' test_expect_success 'test that b1 exists and is empty' ' ( cd x && git reset --hard origin/branch-c && test -f b1 && ! test -s b1 ) ' test_done (CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:test_description) op: Equal rhs: {(SQ <"test moved svn branch with missing empty files">)} spids: [4] ) ] spids: [4] ) (C {(.)} {(./lib-git-svn.sh)}) (C {(test_expect_success)} {(SQ <"load svn dumpfile">)} { (SQ <"\n"> <"\tsvnadmin load \"$rawsvnrepo\" < \"${TEST_DIRECTORY}/t9135/svn.dump\"\n"> <"\t">) } ) (C {(test_expect_success)} {(SQ <"clone using git svn">)} {(SQ <"git svn clone -s \"$svnrepo\" x">)}) (C {(test_expect_success)} {(SQ <"test that b1 exists and is empty">)} { (SQ <"\n"> <"\t(\n"> <"\t\tcd x &&\n"> <"\t\tgit reset --hard origin/branch-c &&\n"> <"\t\ttest -f b1 &&\n"> <"\t\t! test -s b1\n"> <"\t)\n"> <"\t"> ) } ) (C {(test_done)}) ] )