[GH-ISSUE #137] Can't clone repo on Windows directly: invalid path library/modelfiles/llama2:13b #25809

Closed
opened 2026-04-22 01:37:48 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @nathanleclaire on GitHub (Jul 20, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/137

Weird result trying to clone repo on my Windows computer.

error: invalid path 'library/modelfiles/llama2:13b'
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 :/'
Originally created by @nathanleclaire on GitHub (Jul 20, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/137 Weird result trying to clone repo on my Windows computer. ``` error: invalid path 'library/modelfiles/llama2:13b' 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 :/' ```
GiteaMirror added the bug label 2026-04-22 01:37:48 -05:00
Author
Owner

@BruceMacD commented on GitHub (Jul 21, 2023):

I think this was caused by file names not being allowed to contain : on windows. Might be fixed now on main:
https://github.com/jmorganca/ollama/pull/146

As a workaround using the WSL shell might work.

<!-- gh-comment-id:1646208710 --> @BruceMacD commented on GitHub (Jul 21, 2023): I think this was caused by file names not being allowed to contain `:` on windows. Might be fixed now on main: https://github.com/jmorganca/ollama/pull/146 As a workaround using the WSL shell might work.
Author
Owner

@nathanleclaire commented on GitHub (Jul 21, 2023):

Ah got it yea this issue is more specifically about cloning the repo itself, I bet 6a19724d5f fixed that

Do have it running on WSL :)

<!-- gh-comment-id:1646239975 --> @nathanleclaire commented on GitHub (Jul 21, 2023): Ah got it yea this issue is more specifically about cloning the repo itself, I bet https://github.com/jmorganca/ollama/commit/6a19724d5f48b593a2519293b8485d528796ef7c fixed that Do have it running on WSL :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#25809