mirror of
git://git.codemadness.org/stagit
synced 2025-03-09 09:09:12 -04:00
fix compile: libgit2 0.28 changed giterr_last to git_error_last
libgit2 commit:
a27a4de6f8
This commit is contained in:
parent
9ad1cb6e42
commit
583c44395c
@ -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;
|
||||
}
|
||||
|
4
stagit.c
4
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user