Commit 83772502 authored by Romain Courteaud's avatar Romain Courteaud

erp5_forge: stop accessing the request to pass arguments

parent eace43b4
...@@ -321,10 +321,8 @@ class Git(WorkingCopy): ...@@ -321,10 +321,8 @@ class Git(WorkingCopy):
return self.git('rev-parse', '--short', 'HEAD') + '+' return self.git('rev-parse', '--short', 'HEAD') + '+'
return self.git('rev-parse', 'HEAD') return self.git('rev-parse', 'HEAD')
def commit(self, changelog, added=(), modified=(), removed=()): def commit(self, changelog, push, added=(), modified=(), removed=()):
context = self.aq_parent context = self.aq_parent
request = context.REQUEST
push = request.get('push')
reset = 1 reset = 1
if push: if push:
# if we can't push because we are not up-to-date, we'll either 'merge' or # if we can't push because we are not up-to-date, we'll either 'merge' or
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment