]> git.ipfire.org Git - thirdparty/git.git/blame - t/t9123-git-svn-rebuild-with-rewriteroot.sh
t/t91XX-svn: start removing use of "git-" from these tests
[thirdparty/git.git] / t / t9123-git-svn-rebuild-with-rewriteroot.sh
CommitLineData
74b1e123
JK
1#!/bin/sh
2#
3# Copyright (c) 2008 Jan Krüger
4#
5
6test_description='git-svn respects rewriteRoot during rebuild'
7
8. ./lib-git-svn.sh
9
10mkdir import
11cd import
12 touch foo
13 svn import -m 'import for git-svn' . "$svnrepo" >/dev/null
14cd ..
15rm -rf import
16
17test_expect_success 'init, fetch and checkout repository' '
18 git svn init --rewrite-root=http://invalid.invalid/ "$svnrepo" &&
19 git svn fetch
16805d3e 20 git checkout -b mybranch ${remotes_git_svn}
74b1e123
JK
21 '
22
23test_expect_success 'remove rev_map' '
24 rm "$GIT_SVN_DIR"/.rev_map.*
25 '
26
27test_expect_success 'rebuild rev_map' '
28 git svn rebase >/dev/null
29 '
30
31test_done
32