Skip to content

fix: remove empty file with invalid Windows filename - #243

Open
wahidrizka wants to merge 1 commit into
vercel:mainfrom
wahidrizka:fix/remove-invalid-windows-filename
Open

fix: remove empty file with invalid Windows filename#243
wahidrizka wants to merge 1 commit into
vercel:mainfrom
wahidrizka:fix/remove-invalid-windows-filename

Conversation

@wahidrizka

Copy link
Copy Markdown

What

sources/|| is a tracked 0-byte blob (e69de29, the empty blob). | is one of the characters Windows forbids in filenames, so git clone and git checkout fail on native Windows:

error: invalid path 'sources/||'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.

The working tree is left empty, so the repository cannot be used on Windows at all without a sparse-checkout workaround.

Closes #241.

Verification

Both clones run on the same Windows 11 machine, into a short target path so the 260-character limit is not a factor:

Source Files checked out Exit code
vercel/geist-font@main 1 128
this branch 5106 0

git status is clean on the second one, and sources/ still holds all nine real entries.

I removed the file through the GitHub contents API rather than locally, since it cannot be checked out on the machine that hits the bug.

One correction to the linked issue

#241 attributes the file to 30f2926 (Sep 2024). That is not where it came from: sources/ at that commit holds only five entries and none of them is ||. The API reports the file as added in 4e6dc3f, a config cleanup from April 2026. Either way it is empty and nothing references it.

Changeset

Not added. This touches only sources/, which is not part of the published geist package, so there is nothing to release.

sources/|| is a tracked 0-byte blob. The pipe character is not allowed in
Windows filenames, so git clone and git checkout fail there with
"error: invalid path 'sources/||'" and the working tree is left empty.

Nothing references the file. It entered the tree in 4e6dc3f.

Closes vercel#241
@vercel

vercel Bot commented Aug 11, 2026

Copy link
Copy Markdown

@wahidrizka is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sources/|| file with invalid Windows filename breaks git checkout/clone on Windows

1 participant