The sound distributed version control system

#924 Pijul clone over ssh with spaces in file name

Opened by maxwell on April 2, 2024
maxwell on April 2, 2024

Good day,

I am using pijul for a few repositories, I wanted to pull on over from my workstation to my laptop, but I am running into a problem.

The repo in question has spaces in its filename. This is the consol output

❯ pijul clone maxwell@office:"~/Desktop/TB Fitting Notes"
Repository created at /home/maxwell/Desktop/TB Fitting Notes
error: Found argument 'Fitting' which wasn't expected, or isn't valid in this context

    pijul protocol [OPTIONS] --version <VERSION>

For more information try --help
Error: channel closed

As you can see I have escaped the spaces with quotes.

Please advise if this is user error

dblsaiko on April 2, 2024

I think I know exactly what the problem is. It’s not something you’re doing wrong.

I’ll take a look later.

tankf33der on April 2, 2024

@dblsaiko: repeated

freebsd:~# pijul clone root@"/remote repo" localrepo
Repository created at /root/localrepo
error: unexpected argument 'repo' found

Usage: pijul protocol [OPTIONS] --version <VERSION>

For more information, try '--help'.
Error: channel closed
dblsaiko added a change on April 7, 2024
dblsaiko on April 7, 2024

The better way to fix this would be to make thrussh accept a list of strings instead of a single string for the command to exec on the remote in the first place. Oh wait, that’s literally the SSH protocol that uses a single string to store the command I’m guessing. Nevermind then

dblsaiko on April 7, 2024

Hm, with this change you can now pull from remote paths with spaces but pulling from the Nest doesn’t work at all anymore. Not sure what’s going on with that.