1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-06-25 14:07:41 +02:00
git/t/t9123-git-svn-rebuild-with-...
Jonathan Nieder a48fcd8369 tests: add missing &&
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>
2010-11-09 11:59:49 -08:00

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