From b8de2e09b5eb0f333bbeacae7efd0c350298876f Mon Sep 17 00:00:00 2001 From: Mitchell Hentges Date: Fri, 3 Jul 2020 14:16:49 +0000 Subject: [PATCH] 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 --- python/mozboot/mozboot/bootstrap.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/python/mozboot/mozboot/bootstrap.py b/python/mozboot/mozboot/bootstrap.py index 51ac9a4490a6..675362bba6c3 100644 --- a/python/mozboot/mozboot/bootstrap.py +++ b/python/mozboot/mozboot/bootstrap.py @@ -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')