]> git.ipfire.org Git - thirdparty/git.git/blame - t/t9123-git-svn-rebuild-with-rewriteroot.sh
checkout: fix "branch info" memory leaks
[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
1364ff27 6test_description='git svn respects rewriteRoot during rebuild'
74b1e123 7
9081a421 8TEST_PASSES_SANITIZE_LEAK=true
74b1e123
JK
9. ./lib-git-svn.sh
10
11mkdir import
fd4ec4f2 12(cd import
74b1e123 13 touch foo
da083d68 14 svn_cmd import -m 'import for git svn' . "$svnrepo" >/dev/null
fd4ec4f2 15)
74b1e123
JK
16rm -rf import
17
18test_expect_success 'init, fetch and checkout repository' '
19 git svn init --rewrite-root=http://invalid.invalid/ "$svnrepo" &&
a48fcd83 20 git svn fetch &&
e1c0c158 21 git checkout -b mybranch remotes/git-svn
74b1e123
JK
22 '
23
24test_expect_success 'remove rev_map' '
25 rm "$GIT_SVN_DIR"/.rev_map.*
26 '
27
28test_expect_success 'rebuild rev_map' '
29 git svn rebase >/dev/null
30 '
31
32test_done
33