Changeset 816bc1709037…
Parent 497dff516c0e…
by
Changes to one file · Browse files at 816bc1709037 Showing diff from parent 497dff516c0e Diff from another changeset...
@@ -266,13 +266,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...