blob: 86fe8fbec2f8df389c720133150816e9763714c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/sh
set -e
message="$1"
if [ "$VCS" = git ] && [ -d .git ]; then
if [ -n "$message" ]; then
git commit $GIT_COMMIT_OPTIONS -m "$message"
else
git commit $GIT_COMMIT_OPTIONS
fi
elif [ "$VCS" = hg ] && [ -d .hg ]; then
if [ -n "$message" ]; then
hg commit $HG_COMMIT_OPTIONS -m "$message"
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
|