]> git.pld-linux.org Git - packages/rpm-build-tools.git/blobdiff - shrc.sh
relup: fix commit part
[packages/rpm-build-tools.git] / shrc.sh
diff --git a/shrc.sh b/shrc.sh
index 56e8dc80a1c683c0f185a21069e3d2a15524c06c..c6ed28fddc198620dc3c30e253a68a03a58bce03 100755 (executable)
--- a/shrc.sh
+++ b/shrc.sh
@@ -29,6 +29,10 @@ ac-tag() {
                        echo >&2 "There's no tag pointing to current $branch; refusing to delete branch"
                        return 1
                fi
+               # delete local branch if exists
+               git show-ref -q refs/heads/$branch && git branch -d $branch
+
+               # drop remote branch
                git push --delete origin $branch
        fi
 
This page took 0.379711 seconds and 4 git commands to generate.