Fixed another "source and destination both remote" error case. (Windows) #62
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
So I originally addressed an issue like this in PR #36 with rsyncd shares, but it also seems to crop up with plain old rsync+ssh paths.
I'll let the updated code comment do most of the talking, but basically rsync thinks there are two remotes being specified if both the source path contains a colon (e.g. c:/some/path) and the remote also contains a colon (example.org:/some/path). This code translates local "c:/" style paths to "/c" style paths to get around this. The result being an error message from rsync and a failed git fat push.
This seems like a common case so I'm surprised it hasn't been happening to others. That said, maybe there aren't many windows git-fat users out there...