Commit Diff


commit - be7061eb8834a24d83d6376aa2586e1b3e2232ab
commit + 2944241d9c75a5af82bf989d3931ca67a5c7f70d
blob - 74a744a651a7a4f591fd5c53a0724ec69fbce4bd
blob + 746cf514efa8f22407e5ff7839677223a535a8a1
--- got/got.c
+++ got/got.c
@@ -341,6 +341,7 @@ check_ancestry(struct got_worktree *worktree, struct g
 	if (head_ref == NULL)
 		return got_error_from_errno();
 
+	/* TODO: Check the reflog. The head ref may have been rebased. */
 	err = got_ref_resolve(&head_commit_id, repo, head_ref);
 	if (err)
 		goto done;