[packages/rpm-build-tools] shrc: fix ac-tag detecting branch if no local branch present (thx draenog)

glen glen at pld-linux.org
Wed Aug 22 10:12:04 CEST 2012


commit 68a8058694ff506b12dfe8672b2eac8f9e2474e3
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Aug 22 11:12:01 2012 +0300

    shrc: fix ac-tag detecting branch if no local branch present (thx draenog)

 shrc.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/shrc.sh b/shrc.sh
index c6ed28f..dee20cf 100755
--- 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


More information about the pld-cvs-commit mailing list