You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
add: command line response suggests invalid syntax with single quotes #11134
add: command line response suggests invalid syntax with single quotes
Description
The response from dvc add puts single quotes around the added files in the tracking command. Copying and pasting that command doesn't work (on Windows).
Activity
Rudra-G-23 commentedon Nov 6, 2026
Hi, I'd like to work on this issue. I traced the behavior to
SCMContext._make_git_add_cmd(), which usesshlex.quote()to format paths.I can add Windows-compatible quoting while preserving Unix behavior, along with regression tests for paths containing spaces and backslashes.
Should the Windows output specifically target CMD, or should PowerShell compatibility also be considered?
Rudra-G-23 commentedon Nov 13, 2026
I raised the PR