Eric Wong | 4aacaeb | 2009-07-20 02:06:24 -0700 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | # |
| 3 | # Copyright (c) 2009 Eric Wong |
| 4 | # |
| 5 | |
| 6 | test_description='git svn shallow clone' |
| 7 | . ./lib-git-svn.sh |
| 8 | |
| 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 && |
| 15 | ( |
| 16 | cd a && |
| 17 | > foo && |
| 18 | svn_cmd add foo && |
| 19 | svn_cmd commit -m "add foo" |
Ramsay Jones | 531dd7b | 2010-12-14 18:20:38 +0000 | [diff] [blame] | 20 | ) && |
| 21 | start_httpd |
Eric Wong | 4aacaeb | 2009-07-20 02:06:24 -0700 | [diff] [blame] | 22 | ' |
| 23 | |
Eric Wong | 4aacaeb | 2009-07-20 02:06:24 -0700 | [diff] [blame] | 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 ) |
| 27 | ' |
| 28 | |
Eric Wong | 5af9b77 | 2009-07-25 02:11:39 -0700 | [diff] [blame] | 29 | stop_httpd |
| 30 | |
Eric Wong | 4aacaeb | 2009-07-20 02:06:24 -0700 | [diff] [blame] | 31 | test_done |