From: Johannes Sixt Date: Wed, 12 Mar 2008 08:30:01 +0000 (+0100) Subject: git-submodule summary: fix that some "wc" flavors produce leading spaces X-Git-Tag: v1.5.5-rc0~6^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/eed35595759a65d51279547af0f2d017dd928fa5 git-submodule summary: fix that some "wc" flavors produce leading spaces We print the number of commits in parentheses, but without this change we would get an oddly looking line like this: * sm1 4c8d358...41fbea9 ( 4): Signed-off-by: Johannes Sixt Signed-off-by: Junio C Hamano --- diff --git a/git-submodule.sh b/git-submodule.sh index 4d28fc0988..558a5ca107 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -448,7 +448,7 @@ cmd_summary() { GIT_DIR="$name/.git" \ git log --pretty=oneline --first-parent $range | wc -l ) - total_commits=" ($total_commits)" + total_commits=" ($(($total_commits + 0)))" ;; esac