From 8abfed58f65bf1da81b931dc9b7167efb5f720ee Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 6 Jul 2022 19:36:51 +0530 Subject: [PATCH] remove qt6 brancg checkout hook --- setup/git_post_checkout_hook.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/setup/git_post_checkout_hook.py b/setup/git_post_checkout_hook.py index 000ab43981..71546b437b 100755 --- a/setup/git_post_checkout_hook.py +++ b/setup/git_post_checkout_hook.py @@ -19,19 +19,6 @@ if flags == '1': # A branch checkout prev_branch, cur_branch = list(map(get_branch_name, (prev_rev, current_rev))) rebase_in_progress = os.path.exists('.git/rebase-apply') or os.path.exists('.git/rebase-merge') - if {prev_branch, cur_branch} == {'master', 'qt6'} and not rebase_in_progress: - b = 'qt6' if cur_branch == 'qt6' else 'qt5' - for x in os.listdir(f'bypy/b/{b}'): - link = f'bypy/b/{x}' - try: - os.remove(link) - except FileNotFoundError: - pass - os.symlink(f'{b}/{x}', link) - subprocess.check_call('./setup.py build --clean'.split()) - subprocess.check_call('./setup.py gui --clean'.split()) - subprocess.check_call('./setup.py build'.split()) - subprocess.check_call('./setup.py gui --summary'.split()) # Remove .pyc files as some of them might have been orphaned