Skip to content

Commit

Permalink
Bugfix: Missing refs not removed properly when using clean with --force
Browse files Browse the repository at this point in the history
  • Loading branch information
Totalus authored and admorgan committed Jul 7, 2024
1 parent feac147 commit 5a6c3c2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/git-subrepo
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,11 @@ subrepo:clean() {
git update-ref -d "$ref"
fi
done
git show-ref | while read -r hash ref; do
if [[ $ref == "refs/original/refs/heads/subrepo/$suffix"* ]]; then
git update-ref -d "$ref"
fi
done
fi
}

Expand Down

0 comments on commit 5a6c3c2

Please sign in to comment.