]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
shrc: ac-tag: fetch tags before checking for tags
authorElan Ruusamäe <glen@delfi.ee>
Mon, 13 Aug 2012 14:13:58 +0000 (17:13 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 13 Aug 2012 14:13:58 +0000 (17:13 +0300)
shrc.sh

diff --git a/shrc.sh b/shrc.sh
index ccc3997daf64db6943cf39a8a49f51781323bab1..56e8dc80a1c683c0f185a21069e3d2a15524c06c 100755 (executable)
--- a/shrc.sh
+++ b/shrc.sh
@@ -24,6 +24,7 @@ ac-tag() {
        # see if remote has branch present
        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
                        echo >&2 "There's no tag pointing to current $branch; refusing to delete branch"
                        return 1
This page took 0.028282 seconds and 4 git commands to generate.