git p4: fix bug when verbose enabled with tag export
authorLuke Diamand <luke@diamand.org>
Fri, 11 May 2012 06:25:17 +0000 (07:25 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 11 May 2012 21:21:38 +0000 (14:21 -0700)
Wrong variable name used when verbose enabled, causes failure.

Signed-off-by: Luke Diamand <luke@diamand.org>
Acked-by: Pete Wyckoff <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-p4.py
index eab69590c4162f3e4a51c97819f2089a30247ec5..1335e0b890ada08a5b0e8c450223940aa8f335d2 100755 (executable)
--- a/git-p4.py
+++ b/git-p4.py
@@ -1257,7 +1257,7 @@ def exportGitTags(self, gitTags):
 
             if not m.match(name):
                 if verbose:
-                    print "tag %s does not match regexp %s" % (name, validTagRegexp)
+                    print "tag %s does not match regexp %s" % (name, validLabelRegexp)
                 continue
 
             # Get the p4 commit this corresponds to