aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2024-01-20 20:54:28 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2024-01-20 20:54:28 -0800
commitfe52590d1b76f5c612e9c30494ad2e968b7a7366 (patch)
treedc4e50eb7ef663586b5786466ccb6ef60016d11c
parentfix: dist should sort versions properly (diff)
downloadgitolite-gentoo-fe52590d1b76f5c612e9c30494ad2e968b7a7366.tar.gz
gitolite-gentoo-fe52590d1b76f5c612e9c30494ad2e968b7a7366.tar.bz2
gitolite-gentoo-fe52590d1b76f5c612e9c30494ad2e968b7a7366.zip
fix: dist should only use files known to git
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-xdist.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/dist.sh b/dist.sh
index 125dba0..0ca3165 100755
--- a/dist.sh
+++ b/dist.sh
@@ -22,7 +22,7 @@ else
tag=$1
fi
-for foo in $(find ${dirs} -type f); do
+for foo in $(git ls-files ${dirs} ); do
[ "${foo:$((${#foo}-3))}" = ".pm" ] && { perl $perl_opts -c $foo; continue; }
[ -n "$(grep -m 1 '^#!/usr/bin/perl' $foo)" ] && { perl $perl_opts -c $foo; continue; }
done