Browse Source

branches2.cpp

toml4
Antonio SJ Musumeci 9 months ago
parent
commit
b22991b878
  1. 12
      src/branches2.cpp

12
src/branches2.cpp

@ -23,7 +23,19 @@ int
Branches2::clonepath(ghc::filesystem::path basepath_, Branches2::clonepath(ghc::filesystem::path basepath_,
ghc::filesystem::path relpath_) ghc::filesystem::path relpath_)
{ {
int rv;
for(auto const &tier : _branches)
{
for(auto const &branch : tier)
{
if(branch.path == basepath_)
continue;
rv = fs::clonepath(branch.path,basepath_,relpath_);
if(rv == 0)
return 0;
}
}
return 0; return 0;
} }
Loading…
Cancel
Save