@@ -80,7 +80,6 @@ static struct list_objects_filter_options filter_options;
8080static struct string_list server_options = STRING_LIST_INIT_DUP ;
8181static struct string_list negotiation_tip = STRING_LIST_INIT_NODUP ;
8282static int fetch_write_commit_graph = -1 ;
83- static int update_remote_refs = 1 ;
8483
8584static int git_fetch_config (const char * k , const char * v , void * cb )
8685{
@@ -204,8 +203,6 @@ static struct option builtin_fetch_options[] = {
204203 N_ ("check for forced-updates on all updated branches" )),
205204 OPT_BOOL (0 , "write-commit-graph" , & fetch_write_commit_graph ,
206205 N_ ("write the commit-graph after fetching" )),
207- OPT_BOOL (0 , "update-remote-refs" , & update_remote_refs ,
208- N_ ("update the refs/remotes/ refspace" )),
209206 OPT_END ()
210207};
211208
@@ -751,9 +748,6 @@ static int update_local_ref(struct ref *ref,
751748 const char * pretty_ref = prettify_refname (ref -> name );
752749 int fast_forward = 0 ;
753750
754- if (!update_remote_refs && starts_with (ref -> name , "refs/remotes/" ))
755- return 0 ;
756-
757751 type = oid_object_info (the_repository , & ref -> new_oid , NULL );
758752 if (type < 0 )
759753 die (_ ("object %s not found" ), oid_to_hex (& ref -> new_oid ));
0 commit comments