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
let head_commit = repo.find_commit_or_fail(*oid)?;
194
+
match head_commit.get_parents().as_slice(){
195
+
[] => try_exit_code!(git_run_info.run(
201
196
effects,
202
197
Some(event_tx_id),
203
198
&[
204
-
"branch",
205
-
"-f",
206
-
&branch_name,
207
-
&parent_commit.get_oid().to_string(),
199
+
"update-ref",
200
+
"-d",
201
+
reference_name.as_str(),
202
+
&oid.to_string(),
208
203
],
209
-
)?);
210
-
}
211
-
parent_commits => {
212
-
eyre::bail!("git-branchless record --detach called on a merge commit, but it should only be capable of creating zero- or one-parent commits. Parents: {parent_commits:?}");
eyre::bail!("git-branchless record --detach called on a merge commit, but it should only be capable of creating zero- or one-parent commits. Parents: {parent_commits:?}");
0 commit comments