1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-31 00:48:21 +01:00

Use a path digest when building blame cache keys

Keys have a maximum length of 128, and long paths could cause key lengths to exceed this.

Auditors: chad
This commit is contained in:
epriestley 2016-01-06 19:12:57 -08:00
parent d725dedb1e
commit 449da36c2f

View file

@ -114,7 +114,9 @@ abstract class DiffusionBlameQuery extends DiffusionQuery {
continue;
}
$map[$path] = "blame({$repository_id}, {$identifier}, {$path}, raw)";
$path_hash = PhabricatorHash::digestForIndex($path);
$map[$path] = "blame({$repository_id}, {$identifier}, {$path_hash}, raw)";
}
return $map;