commit cb59d78df7ef571b176a421e7e5579bdbbf96165
Author: Elan Ruusamäe <[email protected]>
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
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit