diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2016-04-29 16:39:33 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2016-04-29 16:39:33 +0200 |
commit | 671f4e91007a149e88b57788fc76059fbeac152e (patch) | |
tree | 1210cf1a92d21955bcb1f7069851e14c4f6d92f1 | |
parent | bc7515e2dcd820b1b5b73f4e6e61e813ae01959f (diff) |
suppress meaningless error codes when a repo can't be opened (similar to stagit-index)
-rw-r--r-- | stagit.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |