diff options
author | Johannes Sixt <johannes.sixt@telecom.at> | 2008-03-12 09:30:01 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-03-12 01:53:30 -0700 |
commit | eed35595759a65d51279547af0f2d017dd928fa5 (patch) | |
tree | 914a49f3672a6fda408c8fe093f56d319f4f95c0 | |
parent | 2da2ddc664538f64c4d8a4ab61ef93b2b77a50d5 (diff) | |
download | git-eed35595759a65d51279547af0f2d017dd928fa5.tar.gz git-eed35595759a65d51279547af0f2d017dd928fa5.tar.xz |
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 <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-x | git-submodule.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-submodule.sh b/git-submodule.sh index 4d28fc098..558a5ca10 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 |