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



commit bc45084211b36d502f2bc43e176f2cc2133f4418
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 6ad26f7..e723868 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.__gtype__)
             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]