-
Notifications
You must be signed in to change notification settings - Fork 20
self-development: replace git fetch --unshallow with --depth 100 #956
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -55,10 +55,9 @@ spec: | |||||||
| - Branch: {{.Branch}} | ||||||||
|
|
||||||||
| Steps: | ||||||||
| 1. Fetch full history: | ||||||||
| 1. Fetch main branch: | ||||||||
| ``` | ||||||||
| git fetch --unshallow || true | ||||||||
| git fetch origin main | ||||||||
| git fetch origin main --depth 100 | ||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P2: Fetching Prompt for AI agents
Suggested change
|
||||||||
| ``` | ||||||||
|
|
||||||||
| 2. Rebase the branch on origin/main: | ||||||||
|
|
||||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -96,7 +96,7 @@ spec: | |||||
| Task: | ||||||
| - 0. Set up your working branch. Run this exactly: | ||||||
| ``` | ||||||
| git fetch --unshallow || true; git fetch origin main; git rebase origin/main | ||||||
| git fetch origin main --depth 100; git rebase origin/main | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P2: Using a fixed shallow fetch depth can break rebases for older branches when the merge base is deeper than 100 commits. Prompt for AI agents
Suggested change
|
||||||
| ``` | ||||||
| - 1. Check if a PR already exists for branch kelos-task-{{.Number}}. | ||||||
|
|
||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P1: Fetching
mainwith a fixed depth can miss the merge-base used bygit diff origin/main...HEAD, causing incomplete or failing reviews for older PR branches.Prompt for AI agents