Mercurial > kallithea
diff rhodecode/lib/middleware/simplegit.py @ 3960:5293d4bbb1ea
Merged dev into stable/default/master branch
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 07 Jun 2013 00:31:11 +0200 |
parents | 3563bb7b4b82 f5a1314886ec |
children | a5888ca796b5 |
line wrap: on
line diff
--- a/rhodecode/lib/middleware/simplegit.py Mon May 20 12:26:09 2013 +0200 +++ b/rhodecode/lib/middleware/simplegit.py Fri Jun 07 00:31:11 2013 +0200 @@ -55,8 +55,7 @@ self.progress("counting objects: %d, done.\n" % len(objects_iter)) dulserver.write_pack_objects(dulserver.ProtocolFile(None, write), objects_iter) - messages = [] - messages.append('thank you for using rhodecode') + messages = ['thank you for using rhodecode'] for msg in messages: self.progress(msg + "\n") @@ -97,7 +96,7 @@ path_info = environ['PATH_INFO'] isgit_path = GIT_PROTO_PAT.match(path_info) log.debug('pathinfo: %s detected as GIT %s' % ( - path_info, isgit_path != None) + path_info, isgit_path is not None) ) return isgit_path @@ -222,8 +221,7 @@ # store the make_lock for later evaluation in hooks extras.update({'make_lock': make_lock, 'locked_by': locked_by}) - # set the environ variables for this request - os.environ['RC_SCM_DATA'] = json.dumps(extras) + fix_PATH() log.debug('HOOKS extras is %s' % extras) baseui = make_ui('db')