Use the right 'struct repository' instead of the_repository
There are a couple of places where 'struct repository' is already passed around, but the_repository is still used. Use the right repo. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
90d3405196
commit
34e7771bc6
@ -248,7 +248,8 @@ static void check_shallow_file_for_update(struct repository *r)
|
||||
if (r->parsed_objects->is_shallow == -1)
|
||||
BUG("shallow must be initialized by now");
|
||||
|
||||
if (!stat_validity_check(r->parsed_objects->shallow_stat, git_path_shallow(the_repository)))
|
||||
if (!stat_validity_check(r->parsed_objects->shallow_stat,
|
||||
git_path_shallow(r)))
|
||||
die("shallow file has changed since we read it");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user