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:
authorKeith Dahlby <dahlbyk@gmail.com>2012-02-21 09:13:40 +0400
committerKeith Dahlby <dahlbyk@gmail.com>2012-02-21 09:13:40 +0400
commit1204fdff3b815ab27f0afac21f40a399889e383d (patch)
treead6896c11e38660e2509d7262fd043e4ac806bc2 /LibGit2Sharp
parent1cb40daeab62551b44a964e2dce60bad098a0477 (diff)
Add support for local tracking branches (branch..remote = ".")
Diffstat (limited to 'LibGit2Sharp')
-rw-r--r--LibGit2Sharp/Branch.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/LibGit2Sharp/Branch.cs b/LibGit2Sharp/Branch.cs
index fdfd74fb..f5e86de2 100644
--- a/LibGit2Sharp/Branch.cs
+++ b/LibGit2Sharp/Branch.cs
@@ -187,6 +187,11 @@ namespace LibGit2Sharp
private static string ResolveTrackedReference(string trackedRemote, string trackedRefName)
{
+ if (trackedRemote == ".")
+ {
+ return trackedRefName;
+ }
+
//TODO: To be replaced by native libgit2 git_branch_tracked_reference() when available.
return trackedRefName.Replace("refs/heads/", string.Concat("refs/remotes/", trackedRemote, "/"));
}