Closed andredfb closed 1 year ago
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:
Update: I don't think this has anything to do with the extension in the end. I think it is related to a security fix here.
Seems git is blocking access if the folder containing the .git directory does not belong to the other user attempting to use the extension. The problem can be avoided by setting the directory as a safe.directory
but I will have to assess the security implications of doing this. I will close the issue but open to ideas about whether it is smart or not to use a shared directory like this with Git.
Description
Hey everyone, not sure if this is a misconfiguration or a bug. I have installed The Littlest JupyterHub and installed the jupyterlab-git extension as per the docs. The extension itself is working but I cannot get it to recognise repositories created inside a shared directory. My goal is to have a shared directory enabled for read/write for all users and symbolically linked in their home directory and have this shared directory as a git repo. Any tips are much appreciated!
Reproduce
git init --shared=0777
or using the extension in JupyterLab) - note that in this case the repo is never visible inside JupyterLabExpected behavior
I would expect that the extension can find the Git repo if the user can navigate to and read/write in the containing folder (and has the appropriate access to the .git folder).
Context
Python package version:
Version: 0.41.0
Extension version:
Git version: 2.34.1
Operating System and its version: Ubuntu 22.04.2
Command Line Output
Web Browser Output