Git cloning problems

100 views
Skip to first unread message

John Heilman

unread,
Oct 30, 2024, 5:54:24 PM10/30/24
to git-for-windows
clone https://github.com/acroyogi/vigil
Cloning into 'vigil'...
remote: Enumerating objects: 405, done.
remote: Counting objects: 100% (71/71), done.
remote: Compressing objects: 100% (49/49), done.
remote: Total 405 (delta 25), reused 48 (delta 17), pack-reused 334 (from 1)
Receiving objects: 100% (405/405), 35.72 MiB | 13.28 MiB/s, done.
Resolving deltas: 100% (193/193), done.
error: invalid path 'Icon?'
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 :/'

Chris. Webster

unread,
Oct 30, 2024, 6:32:38 PM10/30/24
to git-for-windows
The 'Icon?' shows up as a trailing CR in the github repo:

Konstantin Khomoutov

unread,
Oct 31, 2024, 3:34:58 AM10/31/24
to John Heilman, git-for-windows
On Wed, Oct 30, 2024 at 12:43:18PM -0700, John Heilman wrote:

[...]
> clone https://github.com/acroyogi/vigil
[...]
> error: invalid path 'Icon?'
[...]
> The 'Icon?' shows up as a trailing CR in the github repo:
> https://github.com/acroyogi/vigil/blob/master/Icon%0D
[...]

Chris means this (notice '\r' at the end of the file name):

----------------8<----------------
commit 167b831ec76021bd70facda943226481acf547de
Author: acroyogi <gregr...@gmail.com>
Date: Wed Oct 30 11:31:46 2024 -0700

v037 - auto-write of dynamic alert notification html to local file

diff --git "a/Icon\r" "b/Icon\r"
new file mode 100644
index 0000000..e69de29
----------------8<----------------

There appears to be an open PR fixing this [1].

In the mean time, if you *must* work with the repo somehow, you can prevent
Git from automatically checking out the "master" branch after cloning:

git clone --no-checkout https://github.com/acroyogi/vigil
cd vigil
git checkout 167b831ec7~

which will check out the immediate parent of the offending commit.

1. https://github.com/acroyogi/vigil/pull/7

John Heilman

unread,
Nov 1, 2024, 9:21:13 PM11/1/24
to git-for-windows
Got it, thank you guys very much!
Reply all
Reply to author
Forward
0 new messages