diff options
Diffstat (limited to 'stagit-index.c')
-rw-r--r-- | stagit-index.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/stagit-index.c b/stagit-index.c index e019793..ab47e48 100644 --- a/stagit-index.c +++ b/stagit-index.c @@ -147,7 +147,6 @@ err: int main(int argc, char *argv[]) { - const git_error *e = NULL; FILE *fp; char path[PATH_MAX], repodirabs[PATH_MAX + 1]; const char *repodir; @@ -174,8 +173,7 @@ main(int argc, char *argv[]) if (git_repository_open_ext(&repo, repodir, GIT_REPOSITORY_OPEN_NO_SEARCH, NULL)) { - e = giterr_last(); - fprintf(stderr, "%s: %s\n", argv[0], e->message); + fprintf(stderr, "%s: cannot open repository\n", argv[0]); ret = 1; continue; } |