]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
shrc: fix ac-tag detecting branch if no local branch present (thx draenog)
authorElan Ruusamäe <glen@delfi.ee>
Wed, 22 Aug 2012 08:12:01 +0000 (11:12 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 22 Aug 2012 08:12:01 +0000 (11:12 +0300)
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.028201 seconds and 4 git commands to generate.