1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-11-17 14:34:49 +01:00
git/contrib/git-svn
Eric Wong 4a393f2b53 git-svn: eol_cp corner-case fixes
If we read the maximum size of our buffer into $buf, and the
last character is '\015', there's a chance that the character is
'\012', which means our regex won't work correctly.  At the
worst case, this could introduce an extra newline into the code.
We'll now read an extra character if we see '\015' is the last
character in $buf.

We also forgot to recalculate the length of $buf after doing the
newline substitution, causing some files to appeare truncated.
We'll do that now and force byte semantics in length() for good
measure.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
2006-06-16 03:04:19 -07:00
..
t git-svn: t0000: add -f flag to checkout 2006-06-16 03:04:19 -07:00
.gitignore contrib/git-svn: add Makefile, test, and associated ignores 2006-02-20 13:32:42 -08:00
git-svn.perl git-svn: eol_cp corner-case fixes 2006-06-16 03:04:19 -07:00
git-svn.txt git-svn: documentation updates 2006-05-05 14:18:41 -07:00
Makefile git-svn: ignore expansion of svn:keywords 2006-05-23 21:37:30 -07:00