summaryrefslogtreecommitdiff
path: root/commit.d/50vcs-commit
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-03-11 15:03:24 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-03-11 15:03:24 -0400
commit6398f205b74c158eecdf2ed6a057f77f64db0340 (patch)
treee0ad2676db44d647972ea7a3fbbccb46aaa3a798 /commit.d/50vcs-commit
parent93b0abfb666273774e3c418f31396b5b5ad1c043 (diff)
* Add support for bzr, thanks to Mark A. Hershberger. Closes: #470515
(Note that bzr does not support etckeeper's pre-commit hook.)
Diffstat (limited to 'commit.d/50vcs-commit')
-rwxr-xr-xcommit.d/50vcs-commit6
1 files changed, 6 insertions, 0 deletions
diff --git a/commit.d/50vcs-commit b/commit.d/50vcs-commit
index 48fa177..86fe8fb 100755
--- a/commit.d/50vcs-commit
+++ b/commit.d/50vcs-commit
@@ -15,4 +15,10 @@ elif [ "$VCS" = hg ] && [ -d .hg ]; then
else
hg commit $HG_COMMIT_OPTIONS
fi
+elif [ "$VCS" = bzr ] && [ -d .bzr ]; then
+ if [ -n "$message" ]; then
+ bzr commit $BZR_COMMIT_OPTIONS -m "$message"
+ else
+ bzr commit $BZR_COMMIT_OPTIONS
+ fi
fi