diff options
author | Piotr Jaroszyński <p.jaroszynski@gmail.com> | 2010-07-21 16:41:05 +0200 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2010-07-21 15:29:33 +0000 |
commit | 9f39956b8b10e4952cdf0efb8462efd55c71926b (patch) | |
tree | 1597734f10fa9de056f80060f546835af3512e89 | |
parent | Environment info about the user doing the push. (diff) | |
download | gitosis-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.py | 4 |
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() |