From b22991b8781ae41dce148d8e262a85437f390507 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Sun, 4 Feb 2024 22:23:35 -0600 Subject: [PATCH] branches2.cpp --- src/branches2.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/branches2.cpp b/src/branches2.cpp index 7251e6af..ce67181c 100644 --- a/src/branches2.cpp +++ b/src/branches2.cpp @@ -23,7 +23,19 @@ int Branches2::clonepath(ghc::filesystem::path basepath_, 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; }