mirror of
https://github.com/git/git
synced 2024-10-06 00:29:28 +00:00
fsck_head_link(): remove unneeded flag variable
It is never read, so we can pass NULL to resolve_ref_unsafe(). Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: David Turner <dturner@twopensource.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
89e8238965
commit
95ae2c7490
|
@ -493,13 +493,12 @@ static void fsck_object_dir(const char *path)
|
||||||
|
|
||||||
static int fsck_head_link(void)
|
static int fsck_head_link(void)
|
||||||
{
|
{
|
||||||
int flag;
|
|
||||||
int null_is_error = 0;
|
int null_is_error = 0;
|
||||||
|
|
||||||
if (verbose)
|
if (verbose)
|
||||||
fprintf(stderr, "Checking HEAD link\n");
|
fprintf(stderr, "Checking HEAD link\n");
|
||||||
|
|
||||||
head_points_at = resolve_ref_unsafe("HEAD", 0, head_oid.hash, &flag);
|
head_points_at = resolve_ref_unsafe("HEAD", 0, head_oid.hash, NULL);
|
||||||
if (!head_points_at) {
|
if (!head_points_at) {
|
||||||
errors_found |= ERROR_REFS;
|
errors_found |= ERROR_REFS;
|
||||||
return error("Invalid HEAD");
|
return error("Invalid HEAD");
|
||||||
|
|
Loading…
Reference in a new issue