Fix also api breaks in history plugin

This commit is contained in:
Ignacio Casal Quinteiro 2013-02-13 12:47:41 +01:00
parent 325c1306d9
commit c0f2051a8c
2 changed files with 4 additions and 4 deletions

View file

@ -133,7 +133,7 @@ namespace GitgHistory
string? icon = null;
bool isdef = false;
if (head != null && item.get_name() == head.get_target())
if (head != null && item.get_name() == head.get_name())
{
icon = "object-select-symbolic";

View file

@ -200,7 +200,7 @@ namespace GitgHistory
if (head != null)
{
id = head.get_id();
id = head.get_target();
if (head.parsed_name.rtype == Gitg.RefType.TAG)
{
@ -234,12 +234,12 @@ namespace GitgHistory
try
{
var t = application.repository.lookup(resolved.get_id(), typeof(Ggit.Tag)) as Ggit.Tag;
var t = application.repository.lookup(resolved.get_target(), typeof(Ggit.Tag)) as Ggit.Tag;
included += t.get_target_id();
}
catch
{
included += resolved.get_id();
included += resolved.get_target();
}
} catch {}
}