mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-21 14:53:35 +05:00
refactor: clone repo in repo switch routine only if there is already a repo present
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
@@ -64,7 +64,7 @@ def run_switch_repo_routine(
|
||||
|
||||
try:
|
||||
# step 2: backup old repo and env
|
||||
org, repo = get_repo_name(repo_dir)
|
||||
org, _ = get_repo_name(repo_dir)
|
||||
backup_dir = backup_dir.joinpath(org)
|
||||
bm = BackupManager()
|
||||
repo_dir_backup_path = bm.backup_directory(
|
||||
|
||||
Reference in New Issue
Block a user