Improve display of Git inputs

This commit is contained in:
Eelco Dolstra 2022-08-31 15:51:18 +02:00
parent 440214f9c1
commit 89f10212f6

View file

@ -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();