Page MenuHomePhabricator

Treat commit hook execution in observed repositories as a no-op, not an error
ClosedPublic

Authored by epriestley on Jul 31 2017, 8:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 27 2024, 3:50 PM
Unknown Object (File)
Jan 23 2024, 12:14 PM
Unknown Object (File)
Dec 24 2023, 9:16 AM
Unknown Object (File)
Dec 6 2023, 5:04 AM
Unknown Object (File)
Nov 30 2023, 6:14 AM
Unknown Object (File)
Nov 19 2023, 7:47 AM
Unknown Object (File)
Oct 4 2023, 7:37 AM
Unknown Object (File)
Jul 21 2023, 11:35 AM
Subscribers
None

Details

Summary

See PHI24. If you create a hosted Mercurial repository and switch it to observed, you can end up with a hook installed that runs on pulls and complains.

Instead, just bail out if we're running on a pull.

The corresponding Git hook doesn't run on pulls, so there's no issue in Git.

Test Plan

Executed the hook in an observed Mercurial repository, got a clean exit.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable