Skip to content

Enhancement Request : tar options for git hash cloc and diff #615

Open
@iMortalitySucks

Description

@iMortalitySucks

When running cloc against a git hash, it uses tar to package up the files for comparison. However, on Windows, if you are running tar on a different drive than the source code and you are using full paths, it causes errors "Cannot connect to X: resolve failed". This is a known issue with tar where if there is a ':' in the path, it thinks it is connecting to another computer for some reason. To resolve this tar has a --force-local option that will force it to assume its a local path instead of a network one.

Can you/someone add this as a command line option to cloc to pass through to tar please? Inversely, if the --extract-with option also applied to archiving, the user could choose to use gzip, 7zip or something other than just tar.

Looks like the code is in sub replace_git_hash_with_tarfile around line 4864.

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

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions