Skip to content

Commit e1edbd4

Browse files
committed
Fix add_all_untracked to return code as expected
GitAddAllUnstagedHandler in handlers.py expects the dictionary returned by this function to have "code" as a key. Seems like this function is the only one that had it's return statement not modified by: 80aee60#diff-041cb4cfb7143f3bbcdd07d28dffa92c
1 parent 0d71ee3 commit e1edbd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyterlab_git/git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ async def add_all_unstaged(self, top_repo_path):
592592

593593
if code != 0:
594594
return {"code": code, "command": " ".join(cmd), "message": error}
595-
return {"result": code}
595+
return {"code": code}
596596

597597
async def add_all_untracked(self, top_repo_path):
598598
"""

0 commit comments

Comments
 (0)