Description
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