Skip to content

git archive not working on windows #5

Description

@yonicd

i wrote show_repo.R that returns the structure of the head of a repo prior to merging the remote with the local master. This works in tandem with a sparse checkout, when you are blind to the repo directory tree structure.

It works on all platforms but windows. I am getting this error (below) back. The same script works in cmd and gitbash. What would be the correct call from R?

> system(' git archive --format=tar HEAD | tar t')
fatal: pathspec '|' did not match any files
Warning message:
running command ' git archive --format=tar HEAD | tar t' had status 128 

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