File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -59,9 +59,12 @@ static int check_deprecated_builtin_config(struct repository *r)
5959 * the check resulted the config being set by this (deprecated) setting.
6060 */
6161 if (!repo_config_get_bool (r , "core.useBuiltinFSMonitor" , & core_use_builtin_fsmonitor )) {
62- advise_if_enabled (ADVICE_USE_CORE_FSMONITOR_CONFIG ,
63- _ ("core.useBuiltinFSMonitor will be deprecated "
64- "soon; use core.fsmonitor instead" ));
62+ if (!git_env_bool ("GIT_SUPPRESS_USEBUILTINFSMONITOR_ADVICE" , 0 )) {
63+ advise_if_enabled (ADVICE_USE_CORE_FSMONITOR_CONFIG ,
64+ _ ("core.useBuiltinFSMonitor will be deprecated "
65+ "soon; use core.fsmonitor instead" ));
66+ setenv ("GIT_SUPPRESS_USEBUILTINFSMONITOR_ADVICE" , "1" , 1 );
67+ }
6568 if (core_use_builtin_fsmonitor ) {
6669 fsm_settings__set_ipc (r );
6770 return 1 ;
You can’t perform that action at this time.
0 commit comments