# Geodesic connectivity implies geodesic convexity?

Assume a subset $C$ of a Riemannian manifold $M$ is "geodesically-connected", that is: given any two points in $C$, there is a geodesic contained within $C$ that joins those two points.

Is it true that $C$ must be geodesically convex? (given any two points in $C$, there is a minimizing geodesic contained within $C$ that joins those two points).

What happens if we only require existence of a minimizing geodesic among all the connecting geodesics contained in $C$? ("internal minimization?")

Take the sphere $S^2$ with the round metric, and cut out the part which is souther than some latitude line which is close to the south pole. (The threshold line also stays out).
We are left with an open Riemannian submanifold $M$.
Any two points in $M$ will be connected via a geodesic. For some pairs of points it will be the "long" part of the usual geodesic in $S^2$ which connects them. (The short minimzing part passes through an area we have deleted).
Since $M$ is open, it is a totally geodesic submanifold of $S^2$. Assume such a pair has a minimizing geodesic between them. Then it must be a geodesic $S^2$, hence the long part of a great circle. However, we can clearly find such a pair for which exists a shorter path in $M$, contrdicting the minimality.
In particular, there are points in $M$ which do not have a minimizing path between them. (By the theorem which states any minimizing path is a geodesic).