use strpbrk(3) to search for characters from a given set
[git/debian.git] / t / t9142-git-svn-shallow-clone.sh
bloba30730502d859408a3d59a1859e55a07eac0c6ce
1 #!/bin/sh
3 # Copyright (c) 2009 Eric Wong
6 test_description='git svn shallow clone'
7 . ./lib-git-svn.sh
9 test_expect_success 'setup test repository' '
10 svn_cmd mkdir -m "create standard layout" \
11 "$svnrepo"/trunk "$svnrepo"/branches "$svnrepo"/tags &&
12 svn_cmd cp -m "branch off trunk" \
13 "$svnrepo"/trunk "$svnrepo"/branches/a &&
14 svn_cmd co "$svnrepo"/branches/a &&
16 cd a &&
17 > foo &&
18 svn_cmd add foo &&
19 svn_cmd commit -m "add foo"
20 ) &&
21 maybe_start_httpd
24 test_expect_success 'clone trunk with "-r HEAD"' '
25 git svn clone -r HEAD "$svnrepo/trunk" g &&
26 ( cd g && git rev-parse --symbolic --verify HEAD )
29 test_done