GitInputScheme: Add some progress indication

This commit is contained in:
Eelco Dolstra 2022-08-31 16:21:07 +02:00
parent 120bec5595
commit 8a43eaaf85

View file

@ -460,6 +460,8 @@ struct GitInputScheme : InputScheme
return *revCount; return *revCount;
} }
Activity act(*logger, lvlChatty, actUnknown, fmt("getting Git revision count of '%s'", repoInfo.url));
auto revCount = std::stoull( auto revCount = std::stoull(
runProgram("git", true, runProgram("git", true,
{ "-C", repoDir, "--git-dir", repoInfo.gitDir, "rev-list", "--count", rev.gitRev() })); { "-C", repoDir, "--git-dir", repoInfo.gitDir, "rev-list", "--count", rev.gitRev() }));
@ -668,6 +670,8 @@ struct GitInputScheme : InputScheme
); );
} }
Activity act(*logger, lvlChatty, actUnknown, fmt("copying Git tree '%s' to the store", input.to_string()));
if (repoInfo.submodules) { if (repoInfo.submodules) {
Path tmpGitDir = createTempDir(); Path tmpGitDir = createTempDir();
AutoDelete delTmpGitDir(tmpGitDir, true); AutoDelete delTmpGitDir(tmpGitDir, true);