Skip to content

Windows: error on full index #324

Description

@hippus

Problem
On full index under Windows there is an error after step 5: The filename, directory name, or volume label syntax is incorrect.
Example output:

[1/9] Building file structure
  Extracting: N/N files (100%)
[2/9] Extracting definitions
[3/9] Building registry
[4/9] Resolving calls & edges
[5/9] Detecting tests
The filename, directory name, or volume label syntax is incorrect.
[7/9] Analyzing git history
[8/9] Linking config files
[9/9] Writing database

Reason
Between [5/9] and [7/9], the pipeline runs run_githistory(). In src/pipeline/pass_githistory.c the non-libgit2 fallback builds a POSIX command:

  "cd '%s' && git log --name-only --pretty=format:COMMIT:%%H "
  "--since='1 year ago' --max-count=10000 2>/dev/null"

cbm_popen on Windows is _popencmd.exe /c. cmd.exe rejects the single-quoted forward-slash path and /dev/null, prints The filename, directory name, or volume label syntax is incorrect. to stderr, and returns nonzero

Activity

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

    bugSomething isn't workingwindowsWindows-specific issues

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions