Ref T4245. Two effects:
- First, let hooks work for future repositories without callsigns.
- Second, provide a better error when users push directly to hosted repositories.
Differential D15293
Remove dependence on callsigns from `bin/commit-hook` Authored by epriestley on Feb 18 2016, 12:46 AM. Tags None Referenced Files
Subscribers None
Details
Ref T4245. Two effects:
Ran bin/commit-hook PHID-REPO-xxx.
Diff Detail
Event TimelineComment Actions I think lint only warns you about too few arguments right now for some arcane but nontrivial-to-resolve technical reason that I don't recall offhand. Oh, it's that we don't actually have a sprintf parser and just print the string and catch exceptions to see if it's valid: try {
xsprintf(null, null, $argv);
} catch (BadFunctionCallException $ex) {
$this->raiseLintAtNode(
$call,
str_replace('xsprintf', $name, $ex->getMessage()));
} catch (InvalidArgumentException $ex) {
// Ignore.
} |