Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gix/src/remote/connection/fetch/update_refs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ pub(crate) fn update(
let mut updates = Vec::new();
let mut edit_indices_to_validate = Vec::new();

let mut checked_out_branches = worktree_branches(repo)?;
let implicit_tag_refspec = fetch_tags
.to_refspec()
.filter(|_| matches!(fetch_tags, crate::remote::fetch::Tags::Included));
Expand Down Expand Up @@ -110,7 +111,6 @@ pub(crate) fn update(
continue;
}
}
let mut checked_out_branches = worktree_branches(repo)?;
let (mode, edit_index, type_change) = match local {
Some(name) => {
let (mode, reflog_message, name, previous_value) = match repo.try_find_reference(name)? {
Expand Down
Loading