summaryrefslogtreecommitdiff
path: root/hg/post-apt.d/50hg-commit
diff options
context:
space:
mode:
Diffstat (limited to 'hg/post-apt.d/50hg-commit')
-rw-r--r--hg/post-apt.d/50hg-commit4
1 files changed, 2 insertions, 2 deletions
diff --git a/hg/post-apt.d/50hg-commit b/hg/post-apt.d/50hg-commit
index 1a5c55a..81f9e9f 100644
--- a/hg/post-apt.d/50hg-commit
+++ b/hg/post-apt.d/50hg-commit
@@ -1,12 +1,12 @@
#!/bin/sh
set -e
-if [ -d .git ]; then
+if [ -d .hg ]; then
# TODO: figure out what packages were acted on by the apt run, and
# include that info in the commit message
message="committing changes after apt run"
# ignore exit code since it exits nonzero if there is nothing to do
- git commit $GIT_COMMIT_OPTIONS -m "$message" || true
+ hg commit $GIT_COMMIT_OPTIONS -m "$message" || true
fi