fix output for deleted submodules in git diff --submodule-summary
commit2d96dbc41a72628f88529a285b6a8dae834a33d0
authorJens Lehmann <Jens.Lehmann@web.de>
Mon, 5 Oct 2009 17:24:48 +0000 (5 19:24 +0200)
committerJens Lehmann <Jens.Lehmann@web.de>
Mon, 5 Oct 2009 17:24:48 +0000 (5 19:24 +0200)
treed35a4cad0ee622e9c38202ed1fef5c170d7e4cec
parent3f7179a4494f6a30495f30bb7688e080d9d676de
fix output for deleted submodules in git diff --submodule-summary

When a submodule has been deleted, add_submodule_odb() returns false
because the directory of the submodule is gone. So we have to test the
second sha for null before we call add_submodule_odb() to get the correct
output.

Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
submodule.c