diff options
author | Florian Schmaus <flow@gentoo.org> | 2022-07-07 08:38:39 +0200 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2022-07-07 08:40:22 +0200 |
commit | e186376f6a6f1e787523b60f6b93a28b999dc56e (patch) | |
tree | 26eb9fa1f1517d410db6cac8bfb211e371603fe4 | |
parent | commit-and-tag: mention for what the patches actually are :) (diff) | |
download | xen-gentoo-patches-e186376f6a6f1e787523b60f6b93a28b999dc56e.tar.gz xen-gentoo-patches-e186376f6a6f1e787523b60f6b93a28b999dc56e.tar.bz2 xen-gentoo-patches-e186376f6a6f1e787523b60f6b93a28b999dc56e.zip |
commit-and-tag: only commit if there is something to commit4.16.1-gentoo-patchset-1
Signed-off-by: Florian Schmaus <flow@gentoo.org>
-rwxr-xr-x | commit-and-tag | 8 |
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 \ |