We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c27ad0 commit 79ddf6dCopy full SHA for 79ddf6d
GitVersionExe/GitPreparer.cs
@@ -32,9 +32,7 @@ public void InitialiseDynamicRepositoryIfNeeded()
32
string CalculateTemporaryRepositoryPath(string targetUrl)
33
{
34
var userTemp = Path.GetTempPath();
35
- var repositoryName = targetUrl.EndsWith(".git") ?
36
- targetUrl.Split('/', '\\').Last().Replace(".git", string.Empty) :
37
- targetUrl.Split('/', '\\').Last();
+ var repositoryName = targetUrl.Split('/', '\\').Last().Replace(".git", string.Empty);
38
var possiblePath = Path.Combine(userTemp, repositoryName);
39
40
// Verify that the existing directory is ok for us to use
0 commit comments