removed GITWRAP_DEFAULT_TLSRESULT according to refactoring
checkout with decision flag to update head or not