Adding --depth=1 to fetchs to save time

See https://github.com/anthropics/claude-code-action/issues/52
This commit is contained in:
zinglax
2025-06-04 09:44:05 -04:00
parent 42d3e56b56
commit f640f38102
2 changed files with 3 additions and 3 deletions

View File

@@ -85,7 +85,7 @@ export async function branchHasChanges(
*/
export async function fetchBranch(branchName: string): Promise<boolean> {
try {
await $`git fetch origin ${branchName}`;
await $`git fetch origin --depth=1 ${branchName}`;
return true;
} catch (error) {
console.log(