summaryrefslogtreecommitdiff
path: root/pre-commit.d/30store-metadata
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2013-12-17 22:27:46 -0400
committerJoey Hess <joey@kitenet.net>2013-12-17 22:31:02 -0400
commit214332b020b03e603d84ab3327f1c17509b49c47 (patch)
treeb7c9cdc09b9386fc3c48d2abe99e8212b9fb8cbb /pre-commit.d/30store-metadata
parent4edca2f7a7219cf6029483d49702512bae0607b3 (diff)
actually, need to munge input, it may use ./ before filenames
Diffstat (limited to 'pre-commit.d/30store-metadata')
-rwxr-xr-xpre-commit.d/30store-metadata2
1 files changed, 1 insertions, 1 deletions
diff --git a/pre-commit.d/30store-metadata b/pre-commit.d/30store-metadata
index ec66764..9e2792f 100755
--- a/pre-commit.d/30store-metadata
+++ b/pre-commit.d/30store-metadata
@@ -29,7 +29,7 @@ filter_ignore() {
;;
git)
git ls-files --others --ignore --exclude-standard --directory > "$listfile" || true
- grep -xFvf "$listfile"
+ sed 's/^\.\///' | grep -xFvf "$listfile"
;;
esac
rm -f "$listfile"