Message ID | 1484eee8961227a9901e3baa052c74a6d992c220.1658298900.git.gitgitgadget@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | c0d2b07460ab9e42ac398316544ed3eb43f9a998 |
Headers | show |
Series | git-p4: fix two undefined variables | expand |
"Moritz Baumann via GitGitGadget" <gitgitgadget@gmail.com> writes: > From: Moritz Baumann <moritz.baumann@sap.com> > > Signed-off-by: Moritz Baumann <moritz.baumann@sap.com> > --- > git-p4.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/git-p4.py b/git-p4.py > index 8fbf6eb1fe3..1de3d6f1cd4 100755 > --- a/git-p4.py > +++ b/git-p4.py > @@ -2226,7 +2226,7 @@ class P4Submit(Command, P4UserMap): > raw=True): > if regexp.search(line): > if verbose: > - print("got keyword match on %s in %s in %s" % (regex.pattern, line, file)) > + print("got keyword match on %s in %s in %s" % (regexp.pattern, line, file)) OK. That's an obvious fix. > kwfiles[file] = regexp > break
diff --git a/git-p4.py b/git-p4.py index 8fbf6eb1fe3..1de3d6f1cd4 100755 --- a/git-p4.py +++ b/git-p4.py @@ -2226,7 +2226,7 @@ class P4Submit(Command, P4UserMap): raw=True): if regexp.search(line): if verbose: - print("got keyword match on %s in %s in %s" % (regex.pattern, line, file)) + print("got keyword match on %s in %s in %s" % (regexp.pattern, line, file)) kwfiles[file] = regexp break