Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rsync exits in Windows mingw #40

Closed
duanem opened this issue Jun 2, 2014 · 4 comments
Closed

rsync exits in Windows mingw #40

duanem opened this issue Jun 2, 2014 · 4 comments

Comments

@duanem
Copy link

duanem commented Jun 2, 2014

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.

  • git fat init
  • git fat status > fat-files.txt
  • edit fat-files.txt in order to feed into rsync

  • rsync --progress --ignore-existing --files-from=- "--rsh=ssh -l user" path:fat-store/repo/ .git\fat\objects/ < fat-files.txt
  • git fat pull

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
Copy link
Author

duanem commented Jun 3, 2014

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.

@duanem duanem closed this as completed Jun 3, 2014
@piinecone
Copy link

@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
Copy link
Author

duanem commented Jun 16, 2014

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
Copy link

@duanem @piinecone See this comment: #43 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants