Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-updates-src > by-pkgid > 63a63e7d6fe73fe02bb901c3fa0aab06 > files > 12

mercurial-3.1.1-5.3.mga5.src.rpm

Index: mercurial-3.1.1/hgext/convert/git.py
===================================================================
--- mercurial-3.1.1/hgext/convert/git.py
+++ mercurial-3.1.1/hgext/convert/git.py	2016-05-05 14:26:56.167157054 +0200
@@ -105,6 +105,10 @@
         super(convert_git, self).__init__(ui, path, rev=rev)
         commandline.__init__(self, ui, 'git')
 
+        # Pass an absolute path to git to prevent from ever being interpreted
+        # as a URL
+        path = os.path.abspath(path)
+
         if os.path.isdir(path + "/.git"):
             path += "/.git"
         if not os.path.exists(path + "/objects"):