summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcommit-and-tag8
1 files changed, 5 insertions, 3 deletions
diff --git a/commit-and-tag b/commit-and-tag
index f9b1f38..0e2ba26 100755
--- a/commit-and-tag
+++ b/commit-and-tag
@@ -10,9 +10,11 @@ OUR_PATCHES_VERSION="${2}"
TAG="${XEN_VERSION}-gentoo-patchset-${OUR_PATCHES_VERSION}"
DESCRIPTION="Gentoo specific patches for Xen ${XEN_VERSION} (or later)"
-git commit \
- --signoff \
- -m "${DESCRIPTION}"
+if [[ -n $(git status --porcelain) ]]; then
+ git commit \
+ --signoff \
+ -m "${DESCRIPTION}"
+fi
git tag \
-s \