aboutsummaryrefslogtreecommitdiffstats
path: root/stagit.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <[email protected]>2019-02-03 15:24:34 +0100
committerHiltjo Posthuma <[email protected]>2019-02-16 21:17:38 +0100
commit583c44395ccc0e052c8db5217bd51fc21f7ffbb7 (patch)
treeb6d9a171b913b1656efa0ff6f239368e92e4d0f8 /stagit.c
parent9ad1cb6e42096a8e1f8663bc0968bb7ea49a5052 (diff)
downloadstagit-583c44395ccc0e052c8db5217bd51fc21f7ffbb7.tar.gz
stagit-583c44395ccc0e052c8db5217bd51fc21f7ffbb7.zip
fix compile: libgit2 0.28 changed giterr_last to git_error_last
libgit2 commit: https://github.com/libgit2/libgit2/commit/a27a4de6f8003961d38958893c6c637395c7cc04
Diffstat (limited to 'stagit.c')
-rw-r--r--stagit.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/stagit.c b/stagit.c
index 093cdab..c2b2f2c 100644
--- a/stagit.c
+++ b/stagit.c
@@ -1054,7 +1054,6 @@ main(int argc, char *argv[])
{
git_object *obj = NULL;
const git_oid *head = NULL;
- const git_error *e = NULL;
mode_t mask;
FILE *fp, *fpread;
char path[PATH_MAX], repodirabs[PATH_MAX + 1], *p;
@@ -1101,8 +1100,7 @@ main(int argc, char *argv[])
if (git_repository_open_ext(&repo, repodir,
GIT_REPOSITORY_OPEN_NO_SEARCH, NULL) < 0) {
- e = giterr_last();
- fprintf(stderr, "%s: %s\n", argv[0], e->message);
+ fprintf(stderr, "%s: cannot open repository\n", argv[0]);
return 1;
}