]> git.ipfire.org Git - thirdparty/git.git/blame - t/t9125-git-svn-multi-glob-branch-names.sh
path.c: don't call the match function without value in trie_find()
[thirdparty/git.git] / t / t9125-git-svn-multi-glob-branch-names.sh
CommitLineData
570d35c2
MG
1#!/bin/sh
2# Copyright (c) 2008 Marcus Griep
3
1364ff27 4test_description='git svn multi-glob branch names'
570d35c2
MG
5. ./lib-git-svn.sh
6
7test_expect_success 'setup svnrepo' '
8 mkdir project project/trunk project/branches \
9 project/branches/v14.1 project/tags &&
10 echo foo > project/trunk/foo &&
da083d68 11 svn_cmd import -m "$test_description" project "$svnrepo/project" &&
570d35c2 12 rm -rf project &&
da083d68 13 svn_cmd cp -m "fun" "$svnrepo/project/trunk" \
570d35c2 14 "$svnrepo/project/branches/v14.1/beta" &&
da083d68 15 svn_cmd cp -m "more fun!" "$svnrepo/project/branches/v14.1/beta" \
570d35c2
MG
16 "$svnrepo/project/branches/v14.1/gold"
17 '
18
19test_expect_success 'test clone with multi-glob in branch names' '
20 git svn clone -T trunk -b branches/*/* -t tags \
21 "$svnrepo/project" project &&
fd4ec4f2 22 (cd project &&
fe191fca
JH
23 git rev-parse "refs/remotes/origin/v14.1/beta" &&
24 git rev-parse "refs/remotes/origin/v14.1/gold"
fd4ec4f2 25 )
570d35c2
MG
26 '
27
28test_expect_success 'test dcommit to multi-globbed branch' "
fd4ec4f2 29 (cd project &&
fe191fca 30 git reset --hard 'refs/remotes/origin/v14.1/gold' &&
570d35c2
MG
31 echo hello >> foo &&
32 git commit -m 'hello' -- foo &&
fd4ec4f2
JL
33 git svn dcommit
34 )
570d35c2
MG
35 "
36
37test_done