interplane.Get Omega
Read in your language

git

[Ported from github.com/git/git] Sync with Git 2.56.1

Brought by drakestapleton

branch master Branches Tags History

git / t / t9123-git-svn-rebuild-with-rewriteroot.sh

35 lines · 684 bytes Raw Blame History
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
10test_expect_success 'setup svn repository' '
11 test_when_finished "rm -rf import" &&
12 mkdir import &&
13 (
14 cd import &&
15 touch foo &&
16 svn_cmd import -m "import for git svn" . "$svnrepo" >/dev/null
17 )
18 '
19
20test_expect_success 'init, fetch and checkout repository' '
21 git svn init --rewrite-root=http://invalid.invalid/ "$svnrepo" &&
22 git svn fetch &&
23 git checkout -b mybranch remotes/git-svn
24 '
25
26test_expect_success 'remove rev_map' '
27 rm "$GIT_SVN_DIR"/.rev_map.*
28 '
29
30test_expect_success 'rebuild rev_map' '
31 git svn rebase >/dev/null
32 '
33
34test_done
35