[meld] vc._vc: Resolve symlinks when searching for repository roots



commit 30b129b3dc4d5b5750ed87ab24f35c43b68d0488
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Wed Dec 17 06:38:33 2014 +1000

    vc._vc: Resolve symlinks when searching for repository roots

 meld/vc/_vc.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/meld/vc/_vc.py b/meld/vc/_vc.py
index 94740e9..50e6143 100644
--- a/meld/vc/_vc.py
+++ b/meld/vc/_vc.py
@@ -280,6 +280,7 @@ class Vc(object):
     @classmethod
     def find_repo_root(cls, location):
         while location:
+            location = os.path.realpath(location)
             if cls.check_repo_root(location):
                 return location
 


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