aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xexamples/gbp-posttag-push2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/gbp-posttag-push b/examples/gbp-posttag-push
index 5b5b5bf..6f92f83 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