Commits

Adrian Buehlmann committed 42fdde6

shellext: enable overlays for repos on roots of network shares and drives

just make sure we don't issue a dreaded call to ::PathIsDirectory with
a UNC share base path argument

Comments (0)

Files changed (1)

win32/shellext/QueryDirstate.cpp

 
     bool res = false;
 
-    if (path.empty() || path == "\\" || ::PathIsRoot(path.c_str()))
-    {
+    if (path.empty() || path == "\\")
         return res;
-    }
 
     const std::string p = path + "\\.hg";
 
+    if (::PathIsUNCServerShare(p.c_str()))
+        return res;
+
     unsigned tc0 = ::GetTickCount();
     res = ::PathIsDirectory(p.c_str()) != 0;
     unsigned tc1 = ::GetTickCount();