summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2012-03-27 21:46:32 +0200
committerGuido Günther <agx@sigxcpu.org>2012-03-27 21:46:32 +0200
commiteae4e4a70620d42d1b0b5cb019fd7640791e607a (patch)
tree353d92f30159194e999c92f1cf9b13c049652f20 /examples
parent96332ccff4f751dbd63549004fc6749b760adcb7 (diff)
downloadgit-buildpackage-eae4e4a70620d42d1b0b5cb019fd7640791e607a.tar.gz
git-buildpackage-eae4e4a70620d42d1b0b5cb019fd7640791e607a.tar.bz2
git-buildpackage-eae4e4a70620d42d1b0b5cb019fd7640791e607a.zip
gbp-posttag-push: Tighten branch regexp
so we don't push to branches ending with the same name accidentally.
Diffstat (limited to 'examples')
-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 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