From 1d6d474408968f728b11aa50c55ec9bb7ddf068e Mon Sep 17 00:00:00 2001 From: Rodos Date: Sun, 7 Dec 2025 21:50:49 +1100 Subject: [PATCH] fix: improve error messages for inaccessible repos and empty wikis --- github_backup/github_backup.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/github_backup/github_backup.py b/github_backup/github_backup.py index bbacdae..0282809 100644 --- a/github_backup/github_backup.py +++ b/github_backup/github_backup.py @@ -2041,11 +2041,14 @@ def fetch_repository( "git ls-remote " + remote_url, stdout=FNULL, stderr=FNULL, shell=True ) if initialized == 128: - logger.info( - "Skipping {0} ({1}) since it's not initialized".format( - name, masked_remote_url + if ".wiki.git" in remote_url: + logger.info( + "Skipping {0} wiki (wiki is enabled but has no content)".format(name) + ) + else: + logger.info( + "Skipping {0} (repository not accessible - may be empty, private, or credentials invalid)".format(name) ) - ) return if clone_exists: