summaryrefslogtreecommitdiff
path: root/src/VREF
diff options
context:
space:
mode:
authorSitaram Chamarty <sitaram@atc.tcs.com>2012-05-27 05:56:55 +0530
committerSitaram Chamarty <sitaram@atc.tcs.com>2012-05-27 05:58:43 +0530
commitd623388c9f265b5e9295d4d73b7a5d4a87aa3753 (patch)
tree331daa88efe5468c57d560dc3b25893ce307dc3b /src/VREF
parent8595303c82e99baa085b20c05c00953fae397a1b (diff)
(BSD compat) apparently 'wc -l' on BSD adds spaces in front
Larry was right. It's probably easier to port a shell than a shell script!
Diffstat (limited to 'src/VREF')
-rwxr-xr-xsrc/VREF/COUNT2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/VREF/COUNT b/src/VREF/COUNT
index d5c3982..6b5cacf 100755
--- a/src/VREF/COUNT
+++ b/src/VREF/COUNT
@@ -32,7 +32,7 @@ nf=
# count files against all the other commits in the system not just $oldsha
# (why? consider what is $oldtree when you create a new branch, or what is
# $oldsha when you update an old feature branch from master and then push it
-count=`git log --name-only $nf --format=%n $newtree --not --all | grep . | sort -u | wc -l`
+count=`git log --name-only $nf --format=%n $newtree --not --all | grep . | sort -u | perl -ne '}{print "$."'`
[[ $count -gt $max ]] && {
# count has been exceeded. If $9 was NO_SIGNOFF there's still a chance