mirror of
https://github.com/git/git
synced 2024-10-29 17:08:46 +00:00
531dd7bbf4
In addition to being more consistent with the other calls to start_httpd in tests t9115-*.sh, t9118-*.sh and t9120-*.sh, this has the added benefit of making the test less noisy. (start_httpd writes "SVN_HTTPD_PORT is not defined!" on stderr.) Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
31 lines
645 B
Bash
Executable file
31 lines
645 B
Bash
Executable file
#!/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"
|
|
) &&
|
|
start_httpd
|
|
'
|
|
|
|
test_expect_success 'clone trunk with "-r HEAD"' '
|
|
git svn clone -r HEAD "$svnrepo/trunk" g &&
|
|
( cd g && git rev-parse --symbolic --verify HEAD )
|
|
'
|
|
|
|
stop_httpd
|
|
|
|
test_done
|