suppress meaningless error codes when a repo can't be opened (similar to stagit-index)
1 files changed, 1 insertions(+), 1 deletions(-) | |||
---|---|---|---|
M | stagit.c | +1 | -1 |
1@@ -893,7 +893,7 @@ main(int argc, char *argv[])
2 if ((status = git_repository_open_ext(&repo, repodir,
3 GIT_REPOSITORY_OPEN_NO_SEARCH, NULL)) < 0) {
4 e = giterr_last();
5- fprintf(stderr, "error %d/%d: %s\n", status, e->klass, e->message);
6+ fprintf(stderr, "%s: %s\n", argv[0], e->message);
7 return status;
8 }
9