aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Jaroszyński <p.jaroszynski@gmail.com>2010-07-21 16:41:05 +0200
committerRobin H. Johnson <robbat2@gentoo.org>2010-07-21 15:29:33 +0000
commit9f39956b8b10e4952cdf0efb8462efd55c71926b (patch)
tree1597734f10fa9de056f80060f546835af3512e89
parentEnvironment info about the user doing the push. (diff)
downloadgitosis-gentoo-0.2_p20100721.tar.gz
gitosis-gentoo-0.2_p20100721.tar.bz2
gitosis-gentoo-0.2_p20100721.zip
Fix re usage.0.2_p20100721
Signed-off-by: Piotr Jaroszyński <p.jaroszynski@gmail.com>
-rw-r--r--gitosis/serve.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitosis/serve.py b/gitosis/serve.py
index 26bda1f..e54a399 100644
--- a/gitosis/serve.py
+++ b/gitosis/serve.py
@@ -215,10 +215,10 @@ class Main(app.App):
os.environ['GITOSIS_NAME'] = m.group(1).strip()
os.environ['GITOSIS_EMAIL'] = m.group(2)
else:
- m.search("^# gitosis-name: *(.*)$", userdata)
+ m=re.search("^# gitosis-name: *(.*)$", userdata)
if m:
os.environ['GITOSIS_NAME'] = m.group(1).strip()
- m.search("^# gitosis-email: *<?(.*)>?$", userdata)
+ m=re.search("^# gitosis-email: *<?(.*)>?$", userdata)
if m:
os.environ['GITOSIS_EMAIL'] = m.group(1).strip()