@@ -80,7 +80,6 @@ static struct list_objects_filter_options filter_options;
80
80
static struct string_list server_options = STRING_LIST_INIT_DUP ;
81
81
static struct string_list negotiation_tip = STRING_LIST_INIT_NODUP ;
82
82
static int fetch_write_commit_graph = -1 ;
83
- static int update_remote_refs = 1 ;
84
83
85
84
static int git_fetch_config (const char * k , const char * v , void * cb )
86
85
{
@@ -204,8 +203,6 @@ static struct option builtin_fetch_options[] = {
204
203
N_ ("check for forced-updates on all updated branches" )),
205
204
OPT_BOOL (0 , "write-commit-graph" , & fetch_write_commit_graph ,
206
205
N_ ("write the commit-graph after fetching" )),
207
- OPT_BOOL (0 , "update-remote-refs" , & update_remote_refs ,
208
- N_ ("update the refs/remotes/ refspace" )),
209
206
OPT_END ()
210
207
};
211
208
@@ -751,9 +748,6 @@ static int update_local_ref(struct ref *ref,
751
748
const char * pretty_ref = prettify_refname (ref -> name );
752
749
int fast_forward = 0 ;
753
750
754
- if (!update_remote_refs && starts_with (ref -> name , "refs/remotes/" ))
755
- return 0 ;
756
-
757
751
type = oid_object_info (the_repository , & ref -> new_oid , NULL );
758
752
if (type < 0 )
759
753
die (_ ("object %s not found" ), oid_to_hex (& ref -> new_oid ));
0 commit comments