We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b13aad commit e2aa81fCopy full SHA for e2aa81f
jupyterlab_git/handlers.py
@@ -401,8 +401,10 @@ async def post(self):
401
"""
402
current_path = self.get_json_body()["current_path"]
403
current_branch = await self.git.get_current_branch(current_path)
404
- upstream = await self.git.get_upstream_branch(current_path, current_branch)
405
- self.finish(json.dumps({"upstream": upstream}))
+ response = await self.git.get_upstream_branch(current_path, current_branch)
+ if response['code'] != 0:
406
+ self.set_status(500)
407
+ self.finish(json.dumps(upstream))
408
409
410
class GitPullHandler(GitHandler):
0 commit comments