Skip to content

Fix hanging CI when git fetch --shallow-since takes too long#213

Merged
ArturT merged 3 commits intomasterfrom
fix-git-shallow
Jul 21, 2023
Merged

Fix hanging CI when git fetch --shallow-since takes too long#213
ArturT merged 3 commits intomasterfrom
fix-git-shallow

Conversation

@ArturT
Copy link
Copy Markdown
Member

@ArturT ArturT commented Jul 21, 2023

changes

  • Call git fetch --shallow-since "one month ago" --quiet 2>/dev/null only if the repository is shallow
  • Skip git fetch --shallow-since when it takes longer than 5s

related issue

@ArturT ArturT added bug wip Work in progress labels Jul 21, 2023
@ArturT ArturT removed the wip Work in progress label Jul 21, 2023
@ArturT ArturT changed the title Fix for a CI hangs issue when git fetch --shallow-since take too long Fix hanging CI when git fetch --shallow-since takes too long Jul 21, 2023
@ArturT ArturT merged commit 054f0e1 into master Jul 21, 2023
@ArturT ArturT deleted the fix-git-shallow branch July 21, 2023 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant