Update .git/refs/heads/base after patch deletion