Skip to content

Clone fails on Windows: invalid path 'C:\Users\litecli\litecli_test.db' was committed by mistake #276

Open

Description

@leo7martins

While working on a contribution (on a Windows machine), git clone of this repository failed:

$ git clone https://github.com/dbcli/litecli
error: invalid path 'C:\Users\litecli\litecli_test.db'
fatal: unable to checkout working tree

Cause: commit 78c07d3 ("Fix #245: Unable to open log file outside default directory", merged via #255) accidentally added a file literally named C:\Users\litecli\litecli_test.db - an absolute Windows path committed as a filename, presumably a stray local test database created by a test run under WSL. It's a binary SQLite file (12288 bytes).

Impact: the repository cannot be checked out on Windows at all - git clone on Git-for-Windows fails with error: invalid path and leaves a broken working tree, and operations like git reset on the resulting tree raise fatal: Invalid path 'C:/Users/litecli' (I even hit a segfault in Git-for-Windows while trying to work around it with sparse checkouts). Contribution docs suggest cloning the repo as the first step, so this affects every Windows-based contributor.

Suggested fix: remove the path from the tree, e.g.:

git rm -- 'C:\Users\litecli\litecli_test.db'

after which Windows clones work normally again.

Evidence of the blob in HEAD:

$ git ls-tree -r HEAD --name-only
"C:\Users\litecli\litecli_test.db"

I'd be happy to send a small PR removing it - filing this first so the removal is tracked separately from the feature PR I just opened (#275).

(This was found during an AI-assisted contribution session - Mistral Vibe; I verified the failure on Windows Git 2.x and that plain clones work fine on Linux.)

Activity

  1. leo7martins commented on Nov 21, 2026

    @leo7martins
    Author

    PR #277 removes the stray file (plus a .tox lock file committed in the same change). Verified: git clone on Git-for-Windows succeeds from that branch, while cloning main still fails with error: invalid path.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions