Skip to content

Commit 625e942

Browse files
spearceJunio C Hamano
authored andcommitted
Cleanup prepare_packed_git_one to reuse install_packed_git.
There is little point in having the linked list insertion code appearing in install_packed_git, and then again just 30 lines further down in the same file. Signed-off-by: Shawn O. Pearce <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 859607d commit 625e942

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sha1_file.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -790,8 +790,7 @@ static void prepare_packed_git_one(char *objdir, int local)
790790
p = add_packed_git(path, len + namelen, local);
791791
if (!p)
792792
continue;
793-
p->next = packed_git;
794-
packed_git = p;
793+
install_packed_git(p);
795794
}
796795
closedir(dir);
797796
}

0 commit comments

Comments
 (0)