summaryrefslogtreecommitdiff
path: root/sha1-array.h
diff options
context:
space:
mode:
authorLibravatar Jakob Jarmar <jakob.j@gmail.com>2019-10-12 17:38:29 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-10-15 10:34:44 +0900
commit556895d0c8e95a8c2fb41434a5b9bf453e9367f6 (patch)
tree278790932c8b641264dd1fea63410d9bca5ff056 /sha1-array.h
parentGit 2.23 (diff)
downloadtgif-556895d0c8e95a8c2fb41434a5b9bf453e9367f6.tar.xz
stash: avoid recursive hard reset on submodules
git stash push does not recursively stash submodules, but if submodule.recurse is set, it may recursively reset --hard them. Having only the destructive action recurse is likely to be surprising behaviour, and unlikely to be desirable, so the easiest fix should be to ensure that the call to git reset --hard never recurses into submodules. This matches the behavior of check_changes_tracked_files, which ignores submodules. Signed-off-by: Jakob Jarmar <jakob@jarmar.se> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1-array.h')
0 files changed, 0 insertions, 0 deletions