| 56 | } |
| 57 | |
| 58 | std::string Repository::getRepositoryRelativePath(const std::string& path) |
| 59 | { |
| 60 | if (!os::fileOrDirExists(path)) |
| 61 | { |
| 62 | return ""; // doesn't exist |
| 63 | } |
| 64 | |
| 65 | auto relativePath = os::getRelativePath(path, getPath()); |
| 66 | |
| 67 | if (relativePath == path) |
| 68 | { |
| 69 | return ""; // outside VCS |
| 70 | } |
| 71 | |
| 72 | return relativePath; |
| 73 | } |
| 74 | |
| 75 | std::shared_ptr<Repository> Repository::clone() |
| 76 | { |
no test coverage detected