From 89f10212f63c307be8549f42dbb04b82e3e5fa76 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 31 Aug 2022 15:51:18 +0200 Subject: [PATCH] Improve display of Git inputs --- src/libfetchers/git.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libfetchers/git.cc b/src/libfetchers/git.cc index 11f53697c..faede2eed 100644 --- a/src/libfetchers/git.cc +++ b/src/libfetchers/git.cc @@ -748,7 +748,9 @@ struct GitInputScheme : InputScheme files from the Git repository directly. */ if (input.getRef() || input.getRev() || !repoInfo.isLocal) { auto storePath = fetchToStore(store, repoInfo, input); - return {makeStorePathAccessor(store, storePath, std::move(makeNotAllowedError)), input}; + auto accessor = makeStorePathAccessor(store, storePath, std::move(makeNotAllowedError)); + accessor->setPathDisplay("«" + input.to_string() + "»"); + return {accessor, input}; } repoInfo.checkDirty();