Skip to content

Commit 623f617

Browse files
GitVersion now checks out bare repositories
1 parent 2ed9693 commit 623f617

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GitVersion/GitPreparer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ private string GetGitInfoFromUrl()
5555

5656
Logger.WriteInfo(string.Format("Retrieving git info from url '{0}'", _arguments.TargetUrl));
5757

58-
Repository.Clone(_arguments.TargetUrl, gitDirectory, checkout: false, credentials: credentials);
58+
Repository.Clone(_arguments.TargetUrl, gitDirectory, true, false, credentials: credentials);
5959

6060
if (!string.IsNullOrWhiteSpace(_arguments.TargetBranch))
6161
{

0 commit comments

Comments
 (0)