mirror of
https://github.com/git/git.git
synced 2024-12-11 19:03:50 +08:00
a48fcd8369
Breaks in a test assertion's && chain can potentially hide failures from earlier commands in the chain. Commands intended to fail should be marked with !, test_must_fail, or test_might_fail. The examples in this patch do not require that. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
33 lines
597 B
Bash
Executable File
33 lines
597 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Copyright (c) 2008 Jan Krüger
|
|
#
|
|
|
|
test_description='git svn respects rewriteRoot during rebuild'
|
|
|
|
. ./lib-git-svn.sh
|
|
|
|
mkdir import
|
|
(cd import
|
|
touch foo
|
|
svn_cmd import -m 'import for git svn' . "$svnrepo" >/dev/null
|
|
)
|
|
rm -rf import
|
|
|
|
test_expect_success 'init, fetch and checkout repository' '
|
|
git svn init --rewrite-root=http://invalid.invalid/ "$svnrepo" &&
|
|
git svn fetch &&
|
|
git checkout -b mybranch ${remotes_git_svn}
|
|
'
|
|
|
|
test_expect_success 'remove rev_map' '
|
|
rm "$GIT_SVN_DIR"/.rev_map.*
|
|
'
|
|
|
|
test_expect_success 'rebuild rev_map' '
|
|
git svn rebase >/dev/null
|
|
'
|
|
|
|
test_done
|
|
|