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

2014-06-25 Thread Junio C Hamano
Jens Lehmann writes: > + rm -rf sub1 && > + git checkout -f "$1" && > + git status -u -s >actual && > + test_must_be_empty actual && > + sha1=$(git rev-parse HEAD:sub1 || true) && $ xx=; xx=$(git rev-parse HEAD:no-such-path || t

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

2014-06-19 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 test