]> git.pld-linux.org Git - packages/rpm-build-tools.git/blobdiff - shrc.sh
shrc: fix ac-tag detecting branch if no local branch present (thx draenog)
[packages/rpm-build-tools.git] / shrc.sh
diff --git a/shrc.sh b/shrc.sh
index c6ed28fddc198620dc3c30e253a68a03a58bce03..dee20cfb26a2eefaa4f39f9272961d0c33de93a8 100755 (executable)
--- a/shrc.sh
+++ b/shrc.sh
@@ -25,7 +25,7 @@ ac-tag() {
        local branch=AC-branch
        if git show-ref -q refs/remotes/origin/$branch; then
                git fetch --tags
-               if [ -z "$(git tag --points-at $branch 2>/dev/null)" ]; then
+               if [ -z "$(git tag --points-at origin/$branch 2>/dev/null)" ]; then
                        echo >&2 "There's no tag pointing to current $branch; refusing to delete branch"
                        return 1
                fi
This page took 0.034687 seconds and 4 git commands to generate.