suppress meaningless error codes when a repo can't be opened (similar to stagit-index)
This commit is contained in:
parent
bc7515e2dc
commit
671f4e9100
1 changed files with 1 additions and 1 deletions
2
stagit.c
2
stagit.c
|
@ -893,7 +893,7 @@ main(int argc, char *argv[])
|
|||
if ((status = git_repository_open_ext(&repo, repodir,
|
||||
GIT_REPOSITORY_OPEN_NO_SEARCH, NULL)) < 0) {
|
||||
e = giterr_last();
|
||||
fprintf(stderr, "error %d/%d: %s\n", status, e->klass, e->message);
|
||||
fprintf(stderr, "%s: %s\n", argv[0], e->message);
|
||||
return status;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue