jedbrown / git-fat

Simple way to handle fat files without committing them to git, supports synchronization using rsync
BSD 2-Clause "Simplified" License
621 stars 137 forks source link

rsync exits in Windows mingw #40

Closed duanem closed 10 years ago

duanem commented 10 years ago

I've cobbled together a windows/git/git-fat environment that generally seems to work. However, rsync aborts immediately after it is started by git-fat.

rsync: read error: Connection reset by peer (104) rsync error: unexplained error (code 255) at /usr/src/rsync/rsync-3.0.8/io.c(760 ) [Receiver=3.0.8]

The cobbled together environment is setup as:

  1. Install msysgit using option 2 (all executables available from Windows).
  2. Install mingw
  3. install rsync using mingw-get install msys-rsync
  4. Install Python for windows (Python 2.7)
  5. Update the Windows system path to include C:\Python27.
  6. Add git-fat to a directory on the path (i.e. /bin).

I can run all the pieces separately. Whenever git-fat executes rsync, rsync exits.

I can run manually.

The last command shows rsync aborting, but the python script continues and fixes up all the files.

It seems that many have gone through this situation. I've managed to update for binary files. How can I get rsync to not exit?

duanem commented 10 years ago

Closing as not a problem for git-fat.

Mixing mingw and msysgit is the problem. There is ssh in both environments. When git is in the msys environment, running rsync (from the mingw environment), rsync runs the ssh in the msys environment which is not compatible with rsync. Sigh.

Suggestions how others have solved this problem would be appreciated.

piinecone commented 10 years ago

@duanem I'm also interested in a git-fat/rsync solution for windows. Did you come up with anything? I was planning to get into it tonight.

duanem commented 10 years ago

After several hours of research, I found the new mingwgitDevEnv project. This project is the build environment for the next generation Git for Windows environment.

The mingwgitDevEnv project is a start to building a new new environment for Git for Windows that is more up to date than the current version. However, this project is only just getting started. There is actually nothing to build at this point. The good news is that the mingwgitDevEnv environment itself seems to be what we needed.

I'm choosing to start with this environment for the time being. I'll be tracking the project as it progresses and attempting to help out where I can. Unfortunately, it was not clear to me how move the project forward without a major time investment on my part.

TL;DR; -- We're using mingwgitDevEnv and watching the development of the project.

cztomczak commented 9 years ago

@duanem @piinecone See this comment: https://github.com/jedbrown/git-fat/issues/43#issuecomment-69011567