2009-07-20 09:06:24 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Copyright (c) 2009 Eric Wong
|
|
|
|
#
|
|
|
|
|
|
|
|
test_description='git svn shallow clone'
|
|
|
|
. ./lib-git-svn.sh
|
|
|
|
|
|
|
|
test_expect_success 'setup test repository' '
|
|
|
|
svn_cmd mkdir -m "create standard layout" \
|
|
|
|
"$svnrepo"/trunk "$svnrepo"/branches "$svnrepo"/tags &&
|
|
|
|
svn_cmd cp -m "branch off trunk" \
|
|
|
|
"$svnrepo"/trunk "$svnrepo"/branches/a &&
|
|
|
|
svn_cmd co "$svnrepo"/branches/a &&
|
|
|
|
(
|
|
|
|
cd a &&
|
|
|
|
> foo &&
|
|
|
|
svn_cmd add foo &&
|
|
|
|
svn_cmd commit -m "add foo"
|
2010-12-14 18:20:38 +00:00
|
|
|
) &&
|
|
|
|
start_httpd
|
2009-07-20 09:06:24 +00:00
|
|
|
'
|
|
|
|
|
|
|
|
test_expect_success 'clone trunk with "-r HEAD"' '
|
|
|
|
git svn clone -r HEAD "$svnrepo/trunk" g &&
|
|
|
|
( cd g && git rev-parse --symbolic --verify HEAD )
|
|
|
|
'
|
|
|
|
|
2009-07-25 09:11:39 +00:00
|
|
|
stop_httpd
|
|
|
|
|
2009-07-20 09:06:24 +00:00
|
|
|
test_done
|