brightway-lca / brightway2

Metapackage for brightway2 imports and documentation
https://brightway.dev/
BSD 3-Clause "New" or "Revised" License
100 stars 37 forks source link

Unable to clone repository due to invalid path (possibly forbidden character (?) in file name) #60

Closed muelleram closed 1 year ago

muelleram commented 1 year ago

Dear BW community, I want to clone the repository to a local folder on my windows machine using the following command in git bash in the target folder:

$ git clone https://github.com/brightway-lca/brightway2.git

This, however, returns the following error:

Cloning into 'brightway2'...
remote: Enumerating objects: 2541, done.
remote: Counting objects: 100% (387/387), done.
remote: Compressing objects: 100% (265/265), done.
remote: Total 2541 (delta 126), reused 379 (delta 120), pack-reused 2154
Receiving objects: 100% (2541/2541), 13.60 MiB | 1.55 MiB/s, done.
Resolving deltas: 100% (1717/1717), done.
error: invalid path 'notebooks/What happens? When a database is processed.ipynb'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/

The error seems to point to the notebook 'What happens? When a database is processed.ipynb' and I suspect that the question mark character is a forbidden character in (windows) file names and is causing the error. The notebook was recently added, so maybe I am the first windows user to come across this issue. If this is the correct cause for the error, please kindly change the title of that notebook.

Sorry that I raise this now an as "issue" instead of the preferred workflow of a pull request with a changed notebook title but it seems that I cannot edit jupyter notebooks directly in the github-fork.

Best, Amelie