[packages/rpm-build-tools] shrc: ac-tag: fetch tags before checking for tags
glen
glen at pld-linux.org
Mon Aug 13 16:14:02 CEST 2012
commit cb59d78df7ef571b176a421e7e5579bdbbf96165
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Aug 13 17:13:58 2012 +0300
shrc: ac-tag: fetch tags before checking for tags
shrc.sh | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/shrc.sh b/shrc.sh
index ccc3997..56e8dc8 100755
--- 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
More information about the pld-cvs-commit
mailing list