SZEDER Gábor writes:
> Quoting Junio C Hamano :
>
>>> +test_expect_success 'error on clean index and worktree while on
>>> orphan branch' '
>>> + test_when_finished "git checkout master" &&
>>> + git checkout --orphan orphan &&
>>> + git reset --hard &&
>>> + test_must_fail run_require_
Quoting Junio C Hamano :
+test_expect_success 'error on clean index and worktree while on
orphan branch' '
+ test_when_finished "git checkout master" &&
+ git checkout --orphan orphan &&
+ git reset --hard &&
+ test_must_fail run_require_clean_work_tree
+'
The title
SZEDER Gábor writes:
> Add tests that check require_clean_work_tree() in the common cases,
> i.e. on a branch with all combinations of clean and dirty index and
> worktree, and also add tests that exercise it on an orphan branch.
>
> require_clean_work_tree()'s behavior in the orphan branch cases
Add tests that check require_clean_work_tree() in the common cases,
i.e. on a branch with all combinations of clean and dirty index and
worktree, and also add tests that exercise it on an orphan branch.
require_clean_work_tree()'s behavior in the orphan branch cases is
questionable, as it exits wi
4 matches
Mail list logo