There was an error while loading. Please reload this page.
1 parent 1b1f517 commit e8e9db9Copy full SHA for e8e9db9
1 file changed
cite/git/src/repository/repository.rs
@@ -189,6 +189,9 @@ impl Repository {
189
// If repository doesn't exist, clone it first
190
if !self.path.exists() {
191
self.clone_repository()?;
192
+ } else {
193
+ // Repository exists, fetch latest changes to update existing branches/tags
194
+ self.fetch_latest_changes(&self.remote)?;
195
}
196
197
let git_repo = self.open_git_repo()?;
@@ -200,7 +203,7 @@ impl Repository {
200
203
let mut fetch_options = FetchOptions::new();
201
204
fetch_options.remote_callbacks(callbacks);
202
205
- // Collect revisions that need fetching
206
+ // Collect revisions that need fetching (after updating existing refs)
207
let mut revisions_to_fetch = Vec::new();
208
for revision in revisions {
209
if !self.revision_exists(revision)? {
0 commit comments