update-ref --no-deref -d: handle the case when the pointed ref is packed