Git.vala
[gitlive] / Git.vala
index af4208c..3cc7157 100644 (file)
--- a/Git.vala
+++ b/Git.vala
@@ -127,7 +127,7 @@ namespace  GitLive {
                                
                                var heads = r.list();
                                foreach(var rh in heads) {
-                                       var br = this.getBranch(rh.get_name());
+                                       var br = this.getBranch("refs/head/" + rh.get_shorthand());
                                
                                        GLib.debug("got heads: name=%s   rev=%s  localrev=%s",
                                                rh.get_name(),