If I enable core.autocrlf and perform a "git svn rebase" that fetches a change containing CRLFs, the git-svn meta-data gets corrupted. Commit d3c9634e worked around this by setting core.autocrlf to "false" in the per-repo config when initing the clone. However if the config variable was changed, the breakage would still occur. This made it painful to work with git-svn on repos with mostly checked in LFs on Windows. This patch tries to fix the same problem while allowing core.autocrlf to be enabled, by disabling filters when when hashing. git-svn is currently the only call-site for hash_and_insert_object (apart from the test-suite), so changing it should be safe. Signed-off-by: Erik Faye-Lund <kusmabite@xxxxxxxxx> --- With this patch applied, I guess we can also revert d3c9634e. I didn't do this in this series, because I'm lazy and selfish and thus only changed the code I needed to get what I wanted to work ;) I've been running git-svn with these patches with core.autocrlf enabled since December, and never seen the breakage that I saw before d3c9634e. perl/Git.pm | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/perl/Git.pm b/perl/Git.pm index e8df55d..2378da4 100644 --- a/perl/Git.pm +++ b/perl/Git.pm @@ -842,7 +842,7 @@ sub _open_hash_and_insert_object_if_needed { ($self->{hash_object_pid}, $self->{hash_object_in}, $self->{hash_object_out}, $self->{hash_object_ctx}) = - command_bidi_pipe(qw(hash-object -w --stdin-paths)); + command_bidi_pipe(qw(hash-object -w --stdin-paths --no-filters)); } sub _close_hash_and_insert_object { -- 1.7.0.rc2 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html