Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spaces in the path #13

Open
ottercoder opened this issue Jan 14, 2022 · 0 comments
Open

Spaces in the path #13

ottercoder opened this issue Jan 14, 2022 · 0 comments

Comments

@ottercoder
Copy link

I have a path that includes spaces.

I tried different options:

git-copy-history from /Volumes/MY PASSPORT/Documents
git-copy-history from /Volumes/MY\ PASSPORT/Documents

I tried to create a variable with the path:

PATH_WITH_SPACES ="/Volumes/MY PASSPORT/Documents"
git-copy-history from "$PATH_WITH_SPACES"
it works for a cd command, but still fails for the git-copy-history

Error: Command failed: cd /Volumes/MY PASSPORT/Documents && git config user.name
/bin/sh: line 0: cd: /Volumes/MY: No such file or directory
    at checkExecSyncError (child_process.js:629:11)
    at execSync (child_process.js:666:13)
    at getHistory (/Users/kirill/.nvm/versions/node/v10.19.0/lib/node_modules/git-copy-history/index.js:47:16)
    at Object.from (/Users/kirill/.nvm/versions/node/v10.19.0/lib/node_modules/git-copy-history/index.js:135:17)
    at module.exports (/Users/kirill/.nvm/versions/node/v10.19.0/lib/node_modules/git-copy-history/index.js:165:13)
    at Object.<anonymous> (/Users/kirill/.nvm/versions/node/v10.19.0/lib/node_modules/git-copy-history/cli.js:28:1)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant