diff options
| author | Martin Ridgers <[email protected]> | 2021-11-29 10:45:32 +0100 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-11-29 10:45:32 +0100 |
| commit | 36a9bad2061dfbdfa9e330980120e122bd751fa0 (patch) | |
| tree | dca31af252e83cb771daed58bb0f702467240b19 /zenserver/projectstore.cpp | |
| parent | Post-merge fixes (diff) | |
| download | zen-36a9bad2061dfbdfa9e330980120e122bd751fa0.tar.xz zen-36a9bad2061dfbdfa9e330980120e122bd751fa0.zip | |
Only Windows paths have drive letters
Diffstat (limited to 'zenserver/projectstore.cpp')
| -rw-r--r-- | zenserver/projectstore.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zenserver/projectstore.cpp b/zenserver/projectstore.cpp index bf2609672..38ecd22ba 100644 --- a/zenserver/projectstore.cpp +++ b/zenserver/projectstore.cpp @@ -416,12 +416,14 @@ ProjectStore::Oplog::AddFileMapping(Oid FileId, IoHash Hash, std::string_view Se if (ServerPath[0] == '/' || ClientPath[0] != '/') { +#if ZEN_PLATFORM_WINDOWS // This is a special case just to enable tests to use absolute paths. We might want // to have configuration to control this if (ServerPath[1] != ':') { return false; } +#endif } FileMapEntry Entry; |