aboutsummaryrefslogtreecommitdiff
path: root/git2d/cmd1.c
diff options
context:
space:
mode:
Diffstat (limited to 'git2d/cmd1.c')
-rw-r--r--git2d/cmd1.c3
1 files changed, 3 insertions, 0 deletions
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);