diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-03-11 11:19:21 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2022-03-11 11:19:21 +0100 |
commit | 167766b65ca203238f733efd0b5df92d28ab66c4 (patch) | |
tree | 4b61bedb1c799e40a2ddae676b548cd8654c859d /src/libfetchers | |
parent | 7ebd6f1093bd0795c77bdc007fe66349328e491e (diff) |
Style
Diffstat (limited to 'src/libfetchers')
-rw-r--r-- | src/libfetchers/git.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libfetchers/git.cc b/src/libfetchers/git.cc index 6884e8de7..d75c5d3ae 100644 --- a/src/libfetchers/git.cc +++ b/src/libfetchers/git.cc @@ -239,13 +239,13 @@ struct GitInputScheme : InputScheme auto errorMessage = result.second; if (errorMessage.find("fatal: not a git repository") != std::string::npos) { - throw Error("'%s' is not a git repository.", actualUrl); + throw Error("'%s' is not a Git repository", actualUrl); } else if (errorMessage.find("fatal: Needed a single revision") != std::string::npos) { // indicates that the repo does not have any commits // we want to proceed and will consider it dirty later } else if (exitCode != 0) { // any other errors should lead to a failure - throw Error("Getting the HEAD of the git tree '%s' failed with exit code %d:\n%s", actualUrl, exitCode, errorMessage); + throw Error("getting the HEAD of the Git tree '%s' failed with exit code %d:\n%s", actualUrl, exitCode, errorMessage); } bool hasHead = exitCode == 0; |