From d623388c9f265b5e9295d4d73b7a5d4a87aa3753 Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Sun, 27 May 2012 05:56:55 +0530 Subject: [PATCH] (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! --- src/VREF/COUNT | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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