author | Jens Lehmann <Jens.Lehmann@web.de> | |
Tue, 9 Mar 2010 14:55:32 +0000 (15:55 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 10 Mar 2010 07:15:01 +0000 (23:15 -0800) | ||
commit | 2ea6c2c9ab6555cbd48ca017bf5027162707a0b1 | |
tree | b42124725ef72eca364b503bbd6fdc10b29ebb1e | tree | snapshot |
parent | 14e940d719e9d3250b802fbc975210dafaf896d8 | commit | diff |
git submodule summary: Handle HEAD as argument when on an unborn branch
When calling "git submodule summary HEAD" on an unborn branch the output
was empty even when it shouldn't have been ("git submodule summary"
without the HEAD argument prints the expected output since commit
"submodule summary: do not fail before the first commit").
This also fixes "git status" to emit the "Submodule changes to be
committed" section on an unborn branch when used with the
status.submodulesummary config option.
Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
When calling "git submodule summary HEAD" on an unborn branch the output
was empty even when it shouldn't have been ("git submodule summary"
without the HEAD argument prints the expected output since commit
"submodule summary: do not fail before the first commit").
This also fixes "git status" to emit the "Submodule changes to be
committed" section on an unborn branch when used with the
status.submodulesummary config option.
Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-submodule.sh | diff | blob | history |