Skip to content

Commit 7500fb7

Browse files
committed
t9390: add a testcase for --path-rename with no colon
Commit 28b479b (Fix bug in --path-rename argument without colon, 2021-03-12) added a new conditional error message, with no corresponding testcase to ensure the line was covered. I forgot to check the coverage before merging the change. Add a relevant test now. Signed-off-by: Elijah Newren <[email protected]>
1 parent 97a1613 commit 7500fb7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

t/t9390-filter-repo.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,6 +1262,9 @@ test_expect_success 'other startup error cases and requests for help' '
12621262
test_must_fail git filter-repo --path-rename /foo:bar 2>err &&
12631263
test_i18ngrep "Pathnames cannot begin with a ./" err &&
12641264
1265+
test_must_fail git filter-repo --path-rename foo 2>err &&
1266+
test_i18ngrep "Error: --path-rename expects one colon in its argument" err &&
1267+
12651268
test_must_fail git filter-repo --subdirectory-filter /foo 2>err &&
12661269
test_i18ngrep "Pathnames cannot begin with a ./" err &&
12671270

0 commit comments

Comments
 (0)