advice: remove use of global advice_add_embedded_repo

The external use of this variable was added in 532139940c (add: warn
when adding an embedded repository, 2017-06-14). For the use-case it's
more straightforward to track whether we've shown advice in
check_embedded_repo() than setting the global variable.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Ævar Arnfjörð Bjarmason
2021-08-23 12:44:01 +02:00
committed by Junio C Hamano
parent ed9bff0817
commit c2a4b6d4ee
3 changed files with 4 additions and 6 deletions

View File

@@ -5,7 +5,6 @@
struct string_list;
extern int advice_add_embedded_repo;
extern int advice_graft_file_deprecated;
/*