Skip to content

Commit 8184855

Browse files
PDP-975: Fix copyright validation clone issues
- 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
1 parent 233ef22 commit 8184855

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

github-app/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ def download_files(self, file_paths):
314314
token = self.headers['Authorization'].replace('token ','')
315315
auth_clone_url = f"https://x-access-token:{token}@{GHES_URL.replace('https://','')}/{self.repo_full_name}.git"
316316
# Fast full clone - single branch, no tags for speed and reliability
317-
clone_res = subprocess.run(['git', 'clone', '--single-branch', '--no-tags', '--branch', self.pr_data['base']['ref'], auth_clone_url, base_clone_dir], capture_output=True, text=True, timeout=120)
317+
clone_res = subprocess.run(['git', 'clone', '--single-branch', '--no-tags', '--branch', self.pr_data['base']['ref'], auth_clone_url, base_clone_dir], capture_output=True, text=True)
318318
if clone_res.returncode != 0:
319319
raise Exception(f"Git clone failed: {clone_res.stderr}")
320320
# Apply diff with 3-way merge and whitespace fix

0 commit comments

Comments
 (0)