fix: remove empty file with invalid Windows filename - #243
Open
wahidrizka wants to merge 1 commit into
Open
Conversation
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
|
@wahidrizka is attempting to deploy a commit to the Vercel Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
sources/||is a tracked 0-byte blob (e69de29, the empty blob).|is one of the characters Windows forbids in filenames, sogit cloneandgit checkoutfail on native Windows: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:
vercel/geist-font@maingit statusis clean on the second one, andsources/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 asaddedin4e6dc3f, 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 publishedgeistpackage, so there is nothing to release.