projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f6a44b
)
GitBranch.vala
author
Alan Knowles
<alan@roojs.com>
Wed, 20 Mar 2019 07:16:19 +0000
(15:16 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 20 Mar 2019 07:16:19 +0000
(15:16 +0800)
GitBranch.vala
patch
|
blob
|
history
diff --git
a/GitBranch.vala
b/GitBranch.vala
index
7e81038
..
5ab6901
100644
(file)
--- a/
GitBranch.vala
+++ b/
GitBranch.vala
@@
-75,8
+75,13
@@
public class GitBranch : Object
var cb = new GitCallbacks(repo);
rem.connect(Ggit.Direction.FETCH, cb, null, null);
var remote_heads = rem.list();
-
-
+ foreach(var rh in remote_heads) {
+ var rn = rh.get_name();
+ if (!rn.has_prefix("refs/heads/")) {
+ continue;
+ }
+ remotes.set(rn.substr(12), rh.get_oid().to_string());
+ }
var r = repo.repo.enumerate_branches(Ggit.BranchType.LOCAL);