read-tree: add t1013 for submodule updates

Test that the read-tree command updates the work tree as expected for changes which don't result in conflicts with the '-m' and '--reset' flag. Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jens Lehmann committed Jun 15, 2014 at 18:59 UTC 48294e1ddb4e31531d3025da0a6bed54cc4b72ac
1 file changed +12
t/t1013-read-tree-submodule.sh new
+12
@@ -0,0 +1,12 @@
1 +#!/bin/sh
2 +
3 +test_description='read-tree can handle submodules'
4 +
5 +. ./test-lib.sh
6 +. "$TEST_DIRECTORY"/lib-submodule-update.sh
7 +
8 +test_submodule_switch "git read-tree -u -m"
9 +
10 +test_submodule_forced_switch "git read-tree -u --reset"
11 +
12 +test_done