No need for an extra lookup for HEAD

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Fixed issue #2104: Opening log for non-git folder results in multiple error messages

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Fixed issue #2192: Shell context menu not detecting submodule if submodule name differs from submodule path

Detect submodule in .gitmodules by path instead of name

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>