misc cleanup

This commit is contained in:
Jan Petykiewicz 2024-07-29 21:59:13 -07:00
parent 9b329f3b8b
commit a576013073

View File

@ -7,7 +7,6 @@ from typing import Sequence
import subprocess import subprocess
import tempfile import tempfile
import datetime import datetime
import argparse
from itertools import chain from itertools import chain
@ -299,7 +298,7 @@ def snap(
old_base_commit = get_commit(target_base, cwd=cwd) old_base_commit = get_commit(target_base, cwd=cwd)
if old_base_commit: if old_base_commit:
print(f'Migrating {target_base} to new naming scheme ({target_base}/LEGACY)...') print(f'Migrating {target_base} to new naming scheme ({target_base}/LEGACY)...')
print(f'You may also want to delete refs/lethe/HEAD with `git update-ref -d refs/lethe/HEAD`') print('You may also want to delete refs/lethe/HEAD with `git update-ref -d refs/lethe/HEAD`')
_run('git update-ref -d ' + target_base) _run('git update-ref -d ' + target_base)
update_ref(target_base + '/LEGACY', old_base_commit, update_ref(target_base + '/LEGACY', old_base_commit,
message='last commit using old refs/lethe/branchname approach') message='last commit using old refs/lethe/branchname approach')