Clear ref cache in action interface

This commit is contained in:
Jesse van den Kieboom 2014-01-20 13:17:30 +01:00 committed by Jesse van den Kieboom
parent 94c65b14b7
commit 669701f428
2 changed files with 3 additions and 1 deletions

View file

@ -119,7 +119,6 @@ class RefActionRename : GitgExt.Action, GitgExt.RefAction, Object
return;
}
action_interface.application.repository.clear_refs_cache();
action_interface.replace_ref(reference, new_ref);
}
}

View file

@ -35,16 +35,19 @@ class ActionInterface : Object, GitgExt.RefActionInterface
public void add_ref(Gitg.Ref reference)
{
application.repository.clear_refs_cache();
d_refs_list.add_ref(reference);
}
public void remove_ref(Gitg.Ref reference)
{
application.repository.clear_refs_cache();
d_refs_list.remove_ref(reference);
}
public void replace_ref(Gitg.Ref old_ref, Gitg.Ref new_ref)
{
application.repository.clear_refs_cache();
d_refs_list.replace_ref(old_ref, new_ref);
}