mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-10 08:52:39 +01:00
Fix another SVN issue with "@" files
Summary: This chunk of code is kind of iffy and not really correct, but make it not fail, at least. Test Plan: - Added a file named `swamp@2x.jpg` to a working copy. - Used `svn propedit svn:mime-type swamp@2x.jpg@` to incorrectly set its mime type to `text/plain`. - Ran `arc diff`. - Saw `arc diff` "correctly" change its mime-type to a binary mime type. This isn't really correct, but doing it successfully is better than throwing an exception. Reviewers: mbishopim3, chad Reviewed By: mbishopim3 CC: aran Differential Revision: https://secure.phabricator.com/D4998
This commit is contained in:
parent
8692587921
commit
1e612eebc3
1 changed files with 1 additions and 1 deletions
|
@ -385,7 +385,7 @@ final class ArcanistSubversionAPI extends ArcanistRepositoryAPI {
|
|||
if ($mime != 'application/octet-stream') {
|
||||
execx(
|
||||
'svn propset svn:mime-type application/octet-stream %s',
|
||||
$this->getPath($path));
|
||||
self::escapeFileNameForSVN($this->getPath($path)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue