diff options
Diffstat (limited to 'third_party/nix/src/libexpr/primops/fetchGit.cc')
-rw-r--r-- | third_party/nix/src/libexpr/primops/fetchGit.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/third_party/nix/src/libexpr/primops/fetchGit.cc b/third_party/nix/src/libexpr/primops/fetchGit.cc index 99f1c3c4ba0c..2cfdefe7abfd 100644 --- a/third_party/nix/src/libexpr/primops/fetchGit.cc +++ b/third_party/nix/src/libexpr/primops/fetchGit.cc @@ -3,6 +3,7 @@ #include <absl/strings/ascii.h> #include <absl/strings/match.h> +#include <absl/strings/str_split.h> #include <glog/logging.h> #include <sys/time.h> @@ -54,8 +55,9 @@ GitInfo exportGit(ref<Store> store, const std::string& uri, gitInfo.rev = "0000000000000000000000000000000000000000"; gitInfo.shortRev = std::string(gitInfo.rev, 0, 7); - auto files = tokenizeString<std::set<std::string>>( - runProgram("git", true, {"-C", uri, "ls-files", "-z"}), "\0"s); + std::set<std::string> files = + absl::StrSplit(runProgram("git", true, {"-C", uri, "ls-files", "-z"}), + absl::ByChar('\0')); PathFilter filter = [&](const Path& p) -> bool { assert(absl::StartsWith(p, uri)); |