Closed dktanwar closed 7 years ago
Which version of rsync? Can you try calling rsync without git-fat?
rsync version on both machines: 3.1.2
Also, I have tried using directly rsync to copy from Mac to Linux and vice versa. and rsync did it's job
Okay, run
GIT_FAT_VERBOSE=1 git fat pull
(or whatever). This will output (among other things) the exact command that was constructed for rsync. If I were to make a blind guess, perhaps it has to do with case sensitivity in your file system path.
OK.
So I think there is no problem with git-fat
$ git fat pull
rsync: on remote machine: -sRe.LsfxC: unknown option
rsync error: syntax or usage error (code 1) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-51/rsync/main.c(1337) [server=2.6.9]
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [Receiver=3.1.2]
If you have any idea to solve this issue, please let me know.
If you run GIT_FAT_VERBOSE=1 git fat pull
then you'll get more output. In particular, you'll see exactly what options are being passed to rsync
and may be able to narrow it down. I'm going to assume this is not actually a git-fat problem -- please reopen if you find evidence that git-fat is at fault.
You are right! It's not git-fat problem. It's rsync problem, which come pre installed with Mac. Problem is, even having installed newest version of rsync, on mac machine, it's still picking up the developer version. I tried to overcome this issue, but unable to.
$ GIT_FAT_VERBOSE=1 git fat pull
rsync: on remote machine: -sRe.LsfxC: unknown option
rsync error: syntax or usage error (code 1) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-51/rsync/main.c(1337) [server=2.6.9]
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [Receiver=3.1.2]
You should see something like this:
Pulling from localhost:/tmp/fat-store
Executing: rsync --progress --ignore-existing --from0 --files-from=- localhost:/tmp/fat-store/ .git/fat/objects/
You could either uninstall the Apple version or make sure the correct path is used. There is --rsync-path=/path/to/rsync
(see the rsync man page).
@dktanwar the solution I used, in the end, was
csrutil status
csrutil enable
/usr/bin/rsync
to /usr/bin/rsync.bak
with cd /usr/bin && mv rsync rsync.bak
/usr/bin
with ln -s /usr/local/bin/rsync /usr/bin/rsync
This, of course, screams insecure, insecure, insecure!
I am trying to perform
git fat pull
, to pull git-fat objects from a MacPro to Linux. Its failing with following errorBoth machines have same version of rsync