@matheusbsbs / matheus-bagliano / commits / eed3559575
Fork 0

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>

Johannes Sixt committed Mar 12, 2008 at 09:30 UTC eed35595759a65d51279547af0f2d017dd928fa5
1 file changed +1 -1
git-submodule.sh
+1 -1
@@ -448,7 +448,7 @@ cmd_summary() {
448 GIT_DIR="$name/.git" \
449 git log --pretty=oneline --first-parent $range | wc -l
450 )
451 - total_commits=" ($total_commits)"
451 + total_commits=" ($(($total_commits + 0)))"
452 ;;
453 esac
454