Skip to content
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

feat: add fetch command #3

Merged
merged 1 commit into from
Jan 31, 2025
Merged

feat: add fetch command #3

merged 1 commit into from
Jan 31, 2025

Conversation

aymanbagabas
Copy link
Member

No description provided.

Comment on lines +46 to +53
if fetchUnshallow {
fetchDepth = math.MaxInt32
}

opts := git.FetchOptions{
Depth: fetchDepth,
Auth: defaultAuth(ep),
}
Copy link
Member Author

@aymanbagabas aymanbagabas Jan 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This still needs work :/
Here, we only pull commits and objects, we still need to remove the shallow references from the repository in go-git

@aymanbagabas aymanbagabas requested a review from pjbgf January 29, 2025 22:57
@aymanbagabas
Copy link
Member Author

Hey, @pjbgf, could you take a look at this?

return err
}

remote, err := r.Remote("origin")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a positional argument instead. But happy for it to be done in a future PR.

@pjbgf pjbgf merged commit 7e7057d into go-git:main Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants