by
Changes to one file · Browse files at fa97bb9dc060 Showing diff from parent a6008f276de4 816bc1709037 Diff from another changeset...
@@ -199,13 +199,9 @@ {
TDEBUG_TRACE("GetHgRepoRoot('" << path << "')");
- if (::PathIsUNCServerShare(path.c_str()))
- {
- TDEBUG_TRACE("GetHgRepoRoot: path is UNC share '" << path << "'");
- return "";
- }
-
- std::string p = IsDirectory(path)? path : DirName(path);
+ std::string p =
+ (::PathIsUNCServerShare(path.c_str()) || IsDirectory(path))
+ ? path : DirName(path);
for (;;)
{
std::string tdir = p + "\\.hg";
|
Loading...