diff --git a/jupyterlab_git/git.py b/jupyterlab_git/git.py index 83a1f858..aaf4bd65 100644 --- a/jupyterlab_git/git.py +++ b/jupyterlab_git/git.py @@ -2193,9 +2193,9 @@ async def submodule(self, path): code, output, error = await self.__execute(cmd, cwd=path) results = [] - for sha, name, commit in ( - line.strip().split(" ") for line in output.splitlines() - ): + + for line in output.splitlines(): + name = line.strip().split(" ")[-1] submodule = { "name": name, }