Re: [PATCH 1/2] Add tests for git-sh-setup's require_clean_work_tree()

2016-01-20 Thread Junio C Hamano
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_

Re: [PATCH 1/2] Add tests for git-sh-setup's require_clean_work_tree()

2016-01-20 Thread SZEDER Gábor
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

Re: [PATCH 1/2] Add tests for git-sh-setup's require_clean_work_tree()

2016-01-20 Thread Junio C Hamano
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

[PATCH 1/2] Add tests for git-sh-setup's require_clean_work_tree()

2015-11-24 Thread SZEDER Gábor
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