Skip to content

PDP-975: Fix copyright validation clone issues#37

Merged
SameeraPriyathamTadikonda merged 1 commit intomainfrom
PDP-975
Feb 23, 2026
Merged

PDP-975: Fix copyright validation clone issues#37
SameeraPriyathamTadikonda merged 1 commit intomainfrom
PDP-975

Conversation

@SameeraPriyathamTadikonda
Copy link
Contributor

  • Replace shallow clone with full clone using --single-branch and --no-tags
  • Remove timeout to let git handle its own connection timing
  • Resolves 'error processing shallow info' and timeout issues for large repositories

- Replace shallow clone with full clone using --single-branch and --no-tags
- Remove timeout to let git handle its own connection timing
- Resolves 'error processing shallow info' and timeout issues for large repositories
Copilot AI review requested due to automatic review settings February 23, 2026 20:57
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to fix clone issues for large repositories in the copyright validation process. The change removes the 120-second timeout from the git clone subprocess call to address "error processing shallow info" and timeout issues.

Changes:

  • Removed the timeout parameter from the git clone subprocess.run call in the download_files method

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -314,7 +314,7 @@ def download_files(self, file_paths):
token = self.headers['Authorization'].replace('token ','')
auth_clone_url = f"https://x-access-token:{token}@{GHES_URL.replace('https://','')}/{self.repo_full_name}.git"
# Fast full clone - single branch, no tags for speed and reliability
Copy link

Copilot AI Feb 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment on line 316 says "Fast full clone" but the command uses --single-branch and --no-tags, which is not a full clone. A full clone would include all branches and tags. Consider updating the comment to accurately describe the clone strategy, such as "Single-branch clone without tags for speed and reliability".

Suggested change
# Fast full clone - single branch, no tags for speed and reliability
# Fast single-branch clone without tags for speed and reliability

Copilot uses AI. Check for mistakes.
@SameeraPriyathamTadikonda SameeraPriyathamTadikonda merged commit 8184855 into main Feb 23, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants