]> git.ipfire.org Git - thirdparty/git.git/commit - submodule.c
submodule.c: report the submodule that an error occurs in
authorStefan Beller <sbeller@google.com>
Wed, 20 Jun 2018 22:32:53 +0000 (15:32 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Jun 2018 16:06:15 +0000 (09:06 -0700)
commitba95d4e4bdf03badef6bc5c44bc059464f3e79d3
tree4663a81fbe40f08c48973a19ee502ff5d694e91c
parenta42a58d7b62cc1d6301440e81a83feed9d7c118c
submodule.c: report the submodule that an error occurs in

When an error occurs in updating the working tree of a submodule in
submodule_move_head, tell the user which submodule the error occurred in.

The call to read-tree contains a super-prefix, such that the read-tree
will correctly report any path related issues, but some error messages
do not contain a path, for example:

  ~/gerrit$ git checkout --recurse-submodules origin/master
  ~/gerrit$ fatal: failed to unpack tree object 07672f31880ba80300b38492df9d0acfcd6ee00a

Give the hint which submodule has a problem.

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