/// <summary>
        /// By creating an empty solution at the path, Visual Studio git service sets the repo as current.
        /// </summary>
        private void CreateEmptySolutionAtPath(string localPath)
        {
            string guid = Guid.NewGuid().ToString();

            try
            {
                ShellUtils.CreateEmptySolution(localPath, guid);
            }
            finally
            {
                try
                {
                    // Clean up the dummy `.vs` directory.
                    string tmpPath = Path.Combine(localPath, ".vs", guid);
                    if (Directory.Exists(tmpPath))
                    {
                        Directory.Delete(tmpPath, recursive: true);
                    }
                }
                catch (Exception ex) when(
                    ex is IOException ||
                    ex is UnauthorizedAccessException)
                {
                }
            }
        }