Commit 63254fe4 authored by Rafael Monnerat's avatar Rafael Monnerat

erp5_forge: Display failure to push as error

See merge request !1812
parents c2a7e1e8 e5e7c834
...@@ -381,15 +381,18 @@ class Git(WorkingCopy): ...@@ -381,15 +381,18 @@ class Git(WorkingCopy):
self.git('reset', '--soft', '@{%u}' % reset) self.git('reset', '--soft', '@{%u}' % reset)
if isinstance(e, GitLoginError): if isinstance(e, GitLoginError):
raise raise
portal_status_message = str(e) keep_items_dict = dict(
portal_status_message = str(e),
portal_status_level = 'error'
)
else: else:
head = self.git('rev-parse', '--short', 'HEAD') head = self.git('rev-parse', '--short', 'HEAD')
keep_items_dict = dict(
portal_status_message = translateString( portal_status_message = translateString(
'Files committed successfully in revision ${revision}', 'Files committed successfully in revision ${revision}',
mapping=dict(revision=head)) mapping=dict(revision=head))
return context.Base_redirect('view', keep_items={ )
'portal_status_message': portal_status_message return context.Base_redirect('view', keep_items=keep_items_dict)
})
def log(self, path='.'): def log(self, path='.'):
log = [] log = []
......
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