Sorry. The creation codepath already has enough code to remove
the left-over directory foo/ when creating the file foo. I
think your three-step process should be Ok.
-
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