Bug 1481425: Deletes automated removal of mozreview commit hook r=sheehan

When moving from mozreview to Phabricator, the old mozreview git hook
had to be removed. Logic to automate the removal of this hook was added
to vcs-setup.

This commit removes this automated removal since it has been 2 years
since it landed.

Differential Revision: https://phabricator.services.mozilla.com/D82125
This commit is contained in:
Mitchell Hentges 2020-07-03 14:16:49 +00:00
parent 11aed139b7
commit b8de2e09b5

View File

@ -760,19 +760,6 @@ def current_firefox_checkout(check_output, env, hg=None):
def update_git_tools(git, root_state_dir, top_src_dir):
"""Update git tools, hooks and extensions"""
# Bug 1481425 - delete the git-mozreview
# commit message hook in .git/hooks dir
if top_src_dir:
mozreview_commit_hook = os.path.join(top_src_dir, '.git/hooks/commit-msg')
if os.path.exists(mozreview_commit_hook):
with open(mozreview_commit_hook, 'rb') as f:
contents = f.read()
if b'MozReview' in contents:
print('removing git-mozreview commit message hook...')
os.remove(mozreview_commit_hook)
print('git-mozreview commit message hook removed.')
# Ensure git-cinnabar is up to date.
cinnabar_dir = os.path.join(root_state_dir, 'git-cinnabar')