]> git.armaanb.net Git - stagit.git/commitdiff
suppress meaningless error codes when a repo can't be opened (similar to stagit-index)
authorHiltjo Posthuma <hiltjo@codemadness.org>
Fri, 29 Apr 2016 14:39:33 +0000 (16:39 +0200)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Fri, 29 Apr 2016 14:39:33 +0000 (16:39 +0200)
stagit.c

index 1102915d8303df7af7977d437fe1f3c44870d361..7215c94cb27b94a3b072d62d7680b01e404f3a4a 100644 (file)
--- a/stagit.c
+++ b/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;
        }