Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions augur/tasks/git/scc_value_tasks/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ def value_model(logger,repo_git):

logger.info('Generating value data for repo')
logger.info(f"Repo ID: {repo_id}, Path: {path}")

# Check if the repo path exists before running scc
# The repo may not have been cloned yet, in which case we should skip gracefully
if not os.path.exists(path):
logger.warning(f"Repository path does not exist: {path}. Skipping SCC analysis - repo may not be cloned yet.")
return

logger.info('Running scc...')

path_to_scc = os.getenv('SCC_DIR', os.environ['HOME'] + '/scc')
Expand Down
Loading