Actually that's only if --force was not given. If --force was
given, rev-parse wasn't run, so local is not populated. So maybe
its not trivial.
People do weird things. I agree, its probably unlikely to ever
happen. But give a user a length of rope, they will find a way to
hang themselves...
I can see someone trying to use an update hook with bundle/unbundle
to move stuff from one repository to another, despite the fact that
are better ways to do that. Better that we fail when an update
might lose changes.
--
Shawn.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html