]> khamidou — GitHub mirrors - arcanist.git/commit
Don't parse separator tabs as part of the filename in Git diffs which affect files...
authorepriestley <git@epriestley.com>
Thu, 14 Aug 2014 19:13:02 +0000 (12:13 -0700)
committerepriestley <git@epriestley.com>
Thu, 14 Aug 2014 19:13:02 +0000 (12:13 -0700)
commit65b6e1bdac6eea20d10e802bbe42abb4e82a6790
tree07866ce97e0caf39fb759a7531c0672785598056
parent4c0edd296e3301fffdda33c447f6fcafe7d1de01
Don't parse separator tabs as part of the filename in Git diffs which affect files with spaces

Summary:
Fixes T5870. When a filename contains spaces, Git will add a "\t" at the end of the "---" and "+++" lines. We currently consume this and think we're reading a file called "blah blah\t".

Instead, parse it out as not part of the filename.

Test Plan: Added failing unit test and made it pass.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T5870

Differential Revision: https://secure.phabricator.com/D10267
src/parser/ArcanistDiffParser.php
src/parser/__tests__/ArcanistDiffParserTestCase.php
src/parser/__tests__/diff/git-remove-spaces.gitdiff [new file with mode: 0644]