Skip to content

Commit 727ed5e

Browse files
make err msg lowercase when searching
Co-Authored-By: Frédéric Collonval <fcollonval@gmail.com>
1 parent 7b78ee7 commit 727ed5e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

jupyterlab_git/git.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ def get_current_branch(self, current_path):
802802
output, error = p.communicate()
803803
if p.returncode == 0:
804804
return output.decode("utf-8").split('/')[-1].strip()
805-
elif "not a symbolic ref" in error.decode("utf-8"):
805+
elif "not a symbolic ref" in error.decode("utf-8").lower():
806806
return self._get_current_branch_detached(current_path)
807807
else:
808808
raise Exception(
@@ -892,4 +892,3 @@ def _get_tag(self, current_path, commit_sha):
892892
error.decode("utf-8"), " ".join(command)
893893
)
894894
)
895-

0 commit comments

Comments
 (0)