stash: add t3906 for submodule updates
commitda7fe3fb6d810507bef586e76a01bb34758d4472
authorJens Lehmann <Jens.Lehmann@web.de>
Thu, 19 Jun 2014 20:12:54 +0000 (19 22:12 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 14 Jul 2014 19:06:16 +0000 (14 12:06 -0700)
treed793ca7dd731958d727be4a2de7e804b6081febd
parent23e2f388c7da3cfe72c880e662dafb0c2965abba
stash: add t3906 for submodule updates

Test that the stash apply command updates the work tree as expected for
changes which don't result in conflicts. To make that work add a helper
function that uses read-tree to apply the changes of the target commit
to the work tree, then stashes these changes and at last applies that
stash.

Implement the KNOWN_FAILURE_STASH_DOES_IGNORE_SUBMODULE_CHANGES switch
and reuse two other already present switches to expect the known
failure that stash does ignore submodule changes.

Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-submodule-update.sh
t/t3906-stash-submodule.sh [new file with mode: 0755]