[gedit-plugins] Corrections from code review https://bugzilla.gnome.org/show_bug.cgi?id=706455



commit 76c1cb1d213b4ca1f0a1a715e22be8a59aedd835
Author: Jacek Pliszka <Jacek Pliszka hp com>
Date:   Sat Dec 5 11:16:13 2015 +0100

    Corrections from code review https://bugzilla.gnome.org/show_bug.cgi?id=706455

 plugins/git/git/viewactivatable.py |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/plugins/git/git/viewactivatable.py b/plugins/git/git/viewactivatable.py
index ab54db3..09a7e8f 100644
--- a/plugins/git/git/viewactivatable.py
+++ b/plugins/git/git/viewactivatable.py
@@ -133,9 +133,8 @@ class GitViewActivatable(GObject.Object, Gedit.ViewActivatable):
             head = repo.get_head()
             commit = repo.lookup(head.get_target(), Ggit.Commit)
             tree = commit.get_tree()
-
             relative_path = os.path.relpath(
-                os.path.normpath(os.path.realpath(self.location.get_path())),
+                os.path.realpath(self.location.get_path()),
                 repo.get_workdir().get_path()
             )
 
@@ -156,7 +155,6 @@ class GitViewActivatable(GObject.Object, Gedit.ViewActivatable):
                     self.file_contents_list[-1] = last_item[:-1]
 
         except GLib.Error:
-            print("GLib.Error", sys.exc_info()[0])
             # New file in a git repository
             self.file_contents_list = []
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]