checkout.h
10.8 KB
-
Checkout: Don't assert if treeish is NULL · 35221441
In git_checkout_tree, the first check tests if either repo or treeish is NULL and says that eithor of them has to have a valid value. But there is no code to handle the treeish == NULL case. So, do something meaningful in that case: use HEAD instead.
Sascha Cunz committed