From eae4e4a70620d42d1b0b5cb019fd7640791e607a Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Tue, 27 Mar 2012 21:46:32 +0200 Subject: gbp-posttag-push: Tighten branch regexp so we don't push to branches ending with the same name accidentally. --- examples/gbp-posttag-push | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/gbp-posttag-push b/examples/gbp-posttag-push index 5b5b5bfa..6f92f836 100755 --- a/examples/gbp-posttag-push +++ b/examples/gbp-posttag-push @@ -38,7 +38,7 @@ class Env(object): def get_push_targets(env): """get a list of push targets""" dests = {} - cmd = "git config --get-regexp 'remote\..*\.push' '%s(:.*)?$'" % env.branch + cmd = "git config --get-regexp 'remote\..*\.push' '^%s(:.*)?$'" % env.branch for remote in subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True).communicate()[0].split("\n"): if not len(remote): continue -- cgit v1.2.3