[DRE-commits] [gitlab] 01/03: exclude .git from upstream file count

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Wed Dec 13 05:40:05 UTC 2017


This is an automated email from the git hooks/post-receive script.

praveen pushed a commit to branch master
in repository gitlab.

commit af2d9e8d7ab7579e359eb59347436218c1b1434c
Author: Pirate Praveen <praveen at debian.org>
Date:   Wed Dec 13 10:48:53 2017 +0530

    exclude .git from upstream file count
---
 debian/upstream-file-count-check.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/upstream-file-count-check.sh b/debian/upstream-file-count-check.sh
index 003f9bf..27eede2 100644
--- a/debian/upstream-file-count-check.sh
+++ b/debian/upstream-file-count-check.sh
@@ -1,6 +1,6 @@
-ucount=$(ls -1a | wc -l)
+ucount=$(ls -1a |grep -vx .git | wc -l)
 dcount=$(cat debian/install |cut -d' ' -f1|grep -v debian |wc -l)
-ignored=29
+ignored=28
 if ! [ $(echo "$ucount" - "$dcount"|bc) -eq $ignored ]; then
   echo "Found new files added by upstream and not added to debian/install"
   echo "Add them to debian/install or adjust 'ignored=${ignored}'"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/gitlab.git



More information about the Pkg-ruby-extras-commits mailing list