summaryrefslogtreecommitdiff
path: root/pre-commit.d/30store-metadata
diff options
context:
space:
mode:
Diffstat (limited to 'pre-commit.d/30store-metadata')
-rwxr-xr-xpre-commit.d/30store-metadata5
1 files changed, 3 insertions, 2 deletions
diff --git a/pre-commit.d/30store-metadata b/pre-commit.d/30store-metadata
index 959e714..19b4673 100755
--- a/pre-commit.d/30store-metadata
+++ b/pre-commit.d/30store-metadata
@@ -16,10 +16,11 @@ if [ "$VCS" = git ] || [ "$VCS" = hg ]; then
if [ ! -z "$(metastore --compare)" ]; then
metastore --save
+ # stage the file as part of the current commit
if [ "$VCS" = git ]; then
git add .metadata
- elif [ "$VCS" = hg ]; then
- hg add .metadata
fi
+ # hg add not done, hg will automatically include the file
+ # in the current commit
fi
fi