Rubén Justo <rjusto@xxxxxxxxx> writes: > @@ -583,7 +587,7 @@ static void copy_or_rename_branch(const char *oldname, const char *newname, int > interpreted_oldname); > } > > - if (!copy) { > + if (!copy && (oldref_usage & IS_HEAD)) { > /* > * Update all per-worktree HEADs pointing at the old ref to > * point the new ref. What is the relevance of this change?