]> git.ipfire.org Git - thirdparty/git.git/blame - t/t9142-git-svn-shallow-clone.sh
sha1-file: split OBJECT_INFO_FOR_PREFETCH
[thirdparty/git.git] / t / t9142-git-svn-shallow-clone.sh
CommitLineData
4aacaeb3
EW
1#!/bin/sh
2#
3# Copyright (c) 2009 Eric Wong
4#
5
6test_description='git svn shallow clone'
7. ./lib-git-svn.sh
8
9test_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"
531dd7bb 20 ) &&
a8a5d251 21 maybe_start_httpd
4aacaeb3
EW
22'
23
4aacaeb3
EW
24test_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
5af9b77b
EW
29stop_httpd
30
4aacaeb3 31test_done