mirror of
https://we.phorge.it/source/arcanist.git
synced 2025-02-04 02:48:24 +01:00
ad3087e5e1
Summary: Filenames are last in `git status --porcelain=2` lines; they are not escaped in any way, despite the fields being whitespace-delimited. `explode` thus happily chops apart filenames with spaces in them, causing later git operations to operate only on the filename up to the first space. Split the lines into the right number of elements -- in all cases, this is one more than the index we're using, since filenames come last. Test Plan: Altering a file with a space in its path, and running `arc diff -a`. Added tests. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D19389 |
||
---|---|---|
.. | ||
api | ||
parser |