]> git.ipfire.org Git - thirdparty/git.git/commit - git-submodule.sh
submodule update: respect depth in subsequent fetches
authorStefan Beller <sbeller@google.com>
Fri, 29 Jul 2016 00:44:04 +0000 (17:44 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Aug 2016 21:41:02 +0000 (14:41 -0700)
commit6cbf454a2eaa016efff04bd696dc1ec24b515c11
treede1f4e8971f683527015dd0adb15b5540c2abf14
parentd4470c5a46f0fa965b1916308025d031545005fe
submodule update: respect depth in subsequent fetches

When depth is given the user may have a reasonable expectation that
any remote operation is using the given depth. Add a test to demonstrate
we still get the desired sha1 even if the depth is too short to
include the actual commit.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-submodule.sh
t/t7406-submodule-update.sh