Skip to content

Commit

Permalink
handle �lah already exists and is not an empty directory
Browse files Browse the repository at this point in the history
  • Loading branch information
scbedd committed May 25, 2023
1 parent 0590db2 commit bcdb123
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tools/test-proxy/Azure.Sdk.Tools.TestProxy/Store/GitStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,14 @@ public bool InitializeAssetsRepo(GitAssetsConfiguration config, bool forceInit =
}
catch(GitProcessException e)
{
throw GenerateInvokeException(e.Result);
if (string.IsNullOrWhiteSpace(e.Result.StdOut) && e.Result.StdErr.Trim() == "fatal: destination path '.' already exists and is not an empty directory.")
{
// do nothing, this isn't a real problem
}
else
{
throw GenerateInvokeException(e.Result);
}
}

CheckoutRepoAtConfig(config);
Expand Down

0 comments on commit bcdb123

Please sign in to comment.