diff options
author | nulltoken <emeric.fermas@gmail.com> | 2013-10-14 17:12:47 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2013-10-15 21:56:05 +0400 |
commit | b10c4b6e4cc8e15e80313650badea5734037d5cf (patch) | |
tree | e60b606f0e21f7bb5a4aba856d62cc186a5d4d14 /LibGit2Sharp/BranchCollection.cs | |
parent | 75eaceb3b4aa3fa30cf7b2d6876679d1986af0bb (diff) |
Make string marshaling either lax or strict
Diffstat (limited to 'LibGit2Sharp/BranchCollection.cs')
-rw-r--r-- | LibGit2Sharp/BranchCollection.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/LibGit2Sharp/BranchCollection.cs b/LibGit2Sharp/BranchCollection.cs index 575bc2b5..672cf4ce 100644 --- a/LibGit2Sharp/BranchCollection.cs +++ b/LibGit2Sharp/BranchCollection.cs @@ -91,7 +91,7 @@ namespace LibGit2Sharp /// <returns>An <see cref="IEnumerator{T}"/> object that can be used to iterate through the collection.</returns> public virtual IEnumerator<Branch> GetEnumerator() { - return Proxy.git_branch_foreach(repo.Handle, GitBranchType.GIT_BRANCH_LOCAL | GitBranchType.GIT_BRANCH_REMOTE, branchToCanoncialName) + return Proxy.git_branch_foreach(repo.Handle, GitBranchType.GIT_BRANCH_LOCAL | GitBranchType.GIT_BRANCH_REMOTE, BranchToCanonicalName) .Select(n => this[n]) .GetEnumerator(); } @@ -203,9 +203,9 @@ namespace LibGit2Sharp referenceName.LooksLikeRemoteTrackingBranch(); } - private static string branchToCanoncialName(IntPtr namePtr, GitBranchType branchType) + private static string BranchToCanonicalName(IntPtr namePtr, GitBranchType branchType) { - string shortName = Utf8Marshaler.FromNative(namePtr); + string shortName = LaxUtf8Marshaler.FromNative(namePtr); switch (branchType) { |