mirror of
https://github.com/git/git.git
synced 2024-11-01 23:07:55 +01:00
8ef85694a5
Test that the reset command updates the work tree as expected for changes with '--keep', '--merge' (for changes which don't result in conflicts) and '--hard'. Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
14 lines
264 B
Bash
Executable file
14 lines
264 B
Bash
Executable file
#!/bin/sh
|
|
|
|
test_description='reset can handle submodules'
|
|
|
|
. ./test-lib.sh
|
|
. "$TEST_DIRECTORY"/lib-submodule-update.sh
|
|
|
|
test_submodule_switch "git reset --keep"
|
|
|
|
test_submodule_switch "git reset --merge"
|
|
|
|
test_submodule_forced_switch "git reset --hard"
|
|
|
|
test_done
|