Geodesics of singular Riemannian metrics