[gitg] Fix #700542, reinitialize the repository while reloading



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]