rsync protocol?
This commit is contained in:
parent
834e73cde5
commit
5337c4e0c4
2 changed files with 14 additions and 1 deletions
|
@ -58,7 +58,7 @@ rsyncUrlIsShell s
|
||||||
| "rsync://" `isPrefixOf` s = False
|
| "rsync://" `isPrefixOf` s = False
|
||||||
| otherwise = go s
|
| otherwise = go s
|
||||||
where
|
where
|
||||||
-- host:dir is rsync protocol, while host:dir is ssh/rsh
|
-- host:dir is rsync protocol, while host/dir is ssh/rsh
|
||||||
go [] = False
|
go [] = False
|
||||||
go (c:cs)
|
go (c:cs)
|
||||||
| c == '/' = False -- got to directory with no colon
|
| c == '/' = False -- got to directory with no colon
|
||||||
|
|
|
@ -47,3 +47,16 @@ The rsync remote config in .git/config:
|
||||||
[remote "rsyncremote"]
|
[remote "rsyncremote"]
|
||||||
annex-rsyncurl = myuser@rsync.hidrive.strato.com:/users/myuser/git-annex/Music/
|
annex-rsyncurl = myuser@rsync.hidrive.strato.com:/users/myuser/git-annex/Music/
|
||||||
annex-uuid = "UUID"
|
annex-uuid = "UUID"
|
||||||
|
|
||||||
|
> Here's what the --debug flag shows is being run:
|
||||||
|
|
||||||
|
Running: rsync ["--progress","--inplace","joey@localhost:/tmp/Music/d98/a3c/'GPGHMACSHA1--878c3a3f59965bd87b4738ab29562efd215b954c/GPGHMACSHA1--878c3a3f59965bd87b4738ab29562efd215b954c'","/home/joey/tmp/x/.git/annex/tmp/GPGHMACSHA1--878c3a3f59965bd87b4738ab29562efd215b954c"]
|
||||||
|
|
||||||
|
> But, this works for me, here, despite containing the quoting!
|
||||||
|
> That's because here it's using rsync over ssh, which actually requires
|
||||||
|
> that quoting. Are you using rsync
|
||||||
|
> over the rsync protocol? If so, the workaround is to explicitly make
|
||||||
|
> the rsyncurl start with `rsync://` -- and if this is the case, I need
|
||||||
|
> to adjust the code in git-annex that determines if it's using ssh or
|
||||||
|
> the rsync protocol.
|
||||||
|
> --[[Joey]]
|
||||||
|
|
Loading…
Reference in a new issue