Skip to content

Commit

Permalink
update_branch
Browse files Browse the repository at this point in the history
  • Loading branch information
epompeii committed Sep 22, 2024
1 parent 9222780 commit 2a51994
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions services/api/src/model/project/branch/reference.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,11 @@ impl InsertReference {
);
}

// Get the updated branch
// Make sure to do this after updating the old branch head reference to replaced
let query_branch = QueryBranch::get(conn_lock!(context), query_branch.id)?;
slog::debug!(log, "Got updated branch: {query_branch:?}");

// Clone data from the start point for the head reference
query_reference
.clone_start_point(context, branch_start_point)
Expand Down

0 comments on commit 2a51994

Please sign in to comment.