Re: [PATCH 02/14] submodules: Add the lib-submodule-update.sh test library

2014-06-17 Thread Jens Lehmann
Am 17.06.2014 00:49, schrieb Junio C Hamano: Jens Lehmann jens.lehm...@web.de writes: Add this test library to simplify covering all combinations of submodule update scenarios without having to add those to a test of each work tree manipulating command over and over again. The functions

Re: [PATCH 02/14] submodules: Add the lib-submodule-update.sh test library

2014-06-17 Thread Junio C Hamano
Jens Lehmann jens.lehm...@web.de writes: Am 17.06.2014 00:49, schrieb Junio C Hamano: Jens Lehmann jens.lehm...@web.de writes: + git checkout -b add_sub1 + git submodule add ./. sub1 This is not technically wrong per-se, but having the project's history itself as its

Re: [PATCH 02/14] submodules: Add the lib-submodule-update.sh test library

2014-06-17 Thread Jens Lehmann
Am 17.06.2014 20:44, schrieb Junio C Hamano: Jens Lehmann jens.lehm...@web.de writes: Am 17.06.2014 00:49, schrieb Junio C Hamano: Jens Lehmann jens.lehm...@web.de writes: + GIT_WORK_TREE=. git config --unset core.worktree Hmph. What does GIT_WORK_TREE=. alone without

Re: [PATCH 02/14] submodules: Add the lib-submodule-update.sh test library

2014-06-16 Thread Junio C Hamano
Jens Lehmann jens.lehm...@web.de writes: Add this test library to simplify covering all combinations of submodule update scenarios without having to add those to a test of each work tree manipulating command over and over again. The functions test_submodule_switch() and

[PATCH 02/14] submodules: Add the lib-submodule-update.sh test library

2014-06-15 Thread Jens Lehmann
Add this test library to simplify covering all combinations of submodule update scenarios without having to add those to a test of each work tree manipulating command over and over again. The functions test_submodule_switch() and test_submodule_forced_switch() are intended to be called from a