You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(golang): optimize git operations for large repositories (#1725)
feat(golang): add configurable git clone depth support
- Add GIT_CLONE_DEPTH environment variable to control clone depth
- Refactor git.clone() to accept depth parameter with default of 1
- Add git.rm() helper function for proper file removal
- Update GoReleaser to use git.rm() instead of fs.removeSync()
- Add comprehensive test coverage for new functionality
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -274,6 +274,7 @@ Repository tags will be in the following format:
274
274
| `GIT_USER_NAME` | Optional | Username to perform the commit with. Defaults to the git user.name config in the current directory. Fails if it doesn't exist. |
275
275
| `GIT_USER_EMAIL` | Optional | Email to perform the commit with. Defaults to the git user.email config in the current directory. Fails if it doesn't exist. |
276
276
| `GIT_COMMIT_MESSAGE` | Optional | The commit message. Defaults to 'chore(release): $VERSION'. |
277
+
| `GIT_CLONE_DEPTH` | Optional | The git clone depth. Usually only the latest commit is required. Defaults to 1. |
277
278
| `DRYRUN` | Optional | Set to "true" for a dry run. |
0 commit comments