summaryrefslogtreecommitdiff
path: root/git-submodule.sh
diff options
context:
space:
mode:
authorJohannes Sixt <johannes.sixt@telecom.at>2008-03-12 09:30:01 +0100
committerJunio C Hamano <gitster@pobox.com>2008-03-12 01:53:30 -0700
commiteed35595759a65d51279547af0f2d017dd928fa5 (patch)
tree914a49f3672a6fda408c8fe093f56d319f4f95c0 /git-submodule.sh
parent2da2ddc664538f64c4d8a4ab61ef93b2b77a50d5 (diff)
downloadgit-eed35595759a65d51279547af0f2d017dd928fa5.tar.gz
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>
Diffstat (limited to 'git-submodule.sh')
-rwxr-xr-xgit-submodule.sh2
1 files changed, 1 insertions, 1 deletions
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