stagit

static git page generator
git clone git://git.codemadness.org/stagit
Log | Files | Refs | README | LICENSE

commit 6a1224afae24c2ae875978108137962e64dc2d24
parent 3c07e52f98b0f49250c3de026b31202b426eb45a
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri,  6 Apr 2018 19:28:05 +0200

stagit-index: pledge after git_libgit2_init

Diffstat:
Mstagit-index.c | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/stagit-index.c b/stagit-index.c @@ -157,15 +157,16 @@ main(int argc, char *argv[]) const char *repodir; int i, ret = 0; - if (pledge("stdio rpath", NULL) == -1) - err(1, "pledge"); - if (argc < 2) { fprintf(stderr, "%s [repodir...]\n", argv[0]); return 1; } + git_libgit2_init(); + if (pledge("stdio rpath", NULL) == -1) + err(1, "pledge"); + writeheader(stdout); for (i = 1; i < argc; i++) {