Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorekkapop-w <ekkapop.w@gmail.com>2014-02-26 14:02:45 +0400
committernulltoken <emeric.fermas@gmail.com>2014-12-05 23:32:34 +0300
commitbf464cf8a99285abba628a275f682b3d6208d5f0 (patch)
tree8d4ff93c61d2e45c4bca3e6a65ed4d7986382460 /LibGit2Sharp/Repository.cs
parentae654785c22fb54c28a27d128b70d74c4e74d597 (diff)
Teach Repository.Clone to accept a specific branch to checkout
Diffstat (limited to 'LibGit2Sharp/Repository.cs')
-rw-r--r--LibGit2Sharp/Repository.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/LibGit2Sharp/Repository.cs b/LibGit2Sharp/Repository.cs
index d92aed91..ac792284 100644
--- a/LibGit2Sharp/Repository.cs
+++ b/LibGit2Sharp/Repository.cs
@@ -553,6 +553,7 @@ namespace LibGit2Sharp
Bare = options.IsBare ? 1 : 0,
CheckoutOpts = gitCheckoutOptions,
RemoteCallbacks = gitRemoteCallbacks,
+ CheckoutBranch = StrictUtf8Marshaler.FromManaged(options.BranchName)
};
FilePath repoPath;