@@ -186,7 +186,7 @@ static const char message_detached_head_die[] =
186
186
" git push %s HEAD:<name-of-remote-branch>\n" );
187
187
188
188
static void setup_push_upstream (struct remote * remote , struct branch * branch ,
189
- int same_remote , int simple )
189
+ int same_remote )
190
190
{
191
191
if (!branch )
192
192
die (_ (message_detached_head_die ), remote -> name );
@@ -207,12 +207,6 @@ static void setup_push_upstream(struct remote *remote, struct branch *branch,
207
207
"to update which remote branch." ),
208
208
remote -> name , branch -> name );
209
209
210
- if (simple ) {
211
- /* Additional safety */
212
- if (strcmp (branch -> refname , branch -> merge [0 ]-> src ))
213
- die_push_simple (branch , remote );
214
- }
215
-
216
210
refspec_appendf (& rs , "%s:%s" , branch -> refname , branch -> merge [0 ]-> src );
217
211
}
218
212
@@ -271,7 +265,7 @@ static void setup_default_push_refspecs(struct remote *remote)
271
265
break ;
272
266
273
267
case PUSH_DEFAULT_UPSTREAM :
274
- setup_push_upstream (remote , branch , same_remote , 0 );
268
+ setup_push_upstream (remote , branch , same_remote );
275
269
break ;
276
270
277
271
case PUSH_DEFAULT_CURRENT :
0 commit comments