summaryrefslogtreecommitdiff
path: root/doc/bugs/rsync_on_windows_broken_by_upgrade.mdwn
blob: 1d14e5ee3283cf0717fd623c953d4f971ec16053 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
rsync on windows has been broken by the upgrade to a newer version of
cygwin. `rsync user@host:file file` opens the ssh connection, but hangs
up with a protocol error. Apparently it doesn't get even the protocol
version message from the server.

This must be a missing file from cygwin, because if I run the same rsync
program from inside /cygwin/usr/bin, it works. strace found a missing
`charset.alias` file, but installing it didn't solve the problem.

Problem doesn't seem to affect the bundled ssh, just rsync. --[[Joey]]

> Update: Apparently there are two ssh's! msysgit bundles one (did it used
> to in PATH?) and git-annex bundles one from cygwin. msysgit's ends up
> in Git/bin and git-annex's in Git/cmd.
> 
> Seems that cygwin's rsync cannot use git's ssh for whatever reason.
> 
> So the workaround is to
> delete Git/bin/ssh.exe and leave Git/cmd/ssh.exe. Then rsync works.
> However, this may screw up git's use of ssh or other stuff.
> 
> Also, see
> [[webapp_fails_to_connect_to_ssh_repository___40__windows__41__]]
> which is the inverse of this bug.
> 
> Using 2 ssh's that try to use config from different places seems like
> a losing propisition. Need to find an rsync that works with git's ssh.
> --[[Joey]]