[gitg] Fix #700542, reinitialize the repository while reloading
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Fix #700542, reinitialize the repository while reloading
- Date: Tue, 21 May 2013 07:03:57 +0000 (UTC)
commit 4e8c25546a4cd5dfadf8320f08f370ef0d1302a2
Author: Techlive Zheng <techlivezheng gmail com>
Date: Mon May 20 02:57:26 2013 +0800
Fix #700542, reinitialize the repository while reloading
The repo has to be reopened in order to update the refs, there seems no
way currently provided in libgit2 or libgit2-glib to reload the refs.
gitg/gitg-window.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gitg/gitg-window.vala b/gitg/gitg-window.vala
index 6edf904..6ae92a0 100644
--- a/gitg/gitg-window.vala
+++ b/gitg/gitg-window.vala
@@ -208,7 +208,8 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable, Gtk.
private void on_reload_activated()
{
- repository_changed();
+ this.repository = new Gitg.Repository(this.repository.get_location(),
+ null);
}
private void on_clone_repository()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]