Git auto detect clone/pull with sparse checkout