From 9ddff5ced5151938a0c6c7933bac8d9fdad315c3 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 2 May 2025 10:46:11 +0800 Subject: git2c: Some perror --- git2d/cmd1.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'git2d/cmd1.c') diff --git a/git2d/cmd1.c b/git2d/cmd1.c index 5d1988d..d30fc04 100644 --- a/git2d/cmd1.c +++ b/git2d/cmd1.c @@ -9,6 +9,7 @@ int cmd_index(git_repository *repo, struct bare_writer *writer) { /* HEAD tree */ + git_object *obj = NULL; int err = git_revparse_single(&obj, repo, "HEAD^{tree}"); if (err != 0) { @@ -55,6 +56,8 @@ cmd_index(git_repository *repo, struct bare_writer *writer) /* Commits */ + /* TODO BUG: This might be a different commit from the displayed README due to races */ + git_revwalk *walker = NULL; if (git_revwalk_new(&walker, repo) != 0) { bare_put_uint(writer, 9); -- cgit v1.2.3