@@ -376,8 +376,7 @@ static void runcommand_in_submodule_cb(const struct cache_entry *list_item,
376
376
377
377
strvec_pushl (& cpr .args , "submodule--helper" , "foreach" , "--recursive" ,
378
378
NULL );
379
- strvec_pushl (& cpr .args , "--super-prefix" , NULL );
380
- strvec_pushf (& cpr .args , "%s/" , displaypath );
379
+ strvec_pushf (& cpr .args , "--super-prefix=%s/" , displaypath );
381
380
382
381
if (info -> quiet )
383
382
strvec_push (& cpr .args , "--quiet" );
@@ -702,8 +701,7 @@ static void status_submodule(const char *path, const struct object_id *ce_oid,
702
701
703
702
strvec_pushl (& cpr .args , "submodule--helper" , "status" ,
704
703
"--recursive" , NULL );
705
- strvec_push (& cpr .args , "--super-prefix" );
706
- strvec_pushf (& cpr .args , "%s/" , displaypath );
704
+ strvec_pushf (& cpr .args , "--super-prefix=%s/" , displaypath );
707
705
708
706
if (flags & OPT_CACHED )
709
707
strvec_push (& cpr .args , "--cached" );
@@ -1304,9 +1302,7 @@ static void sync_submodule(const char *path, const char *prefix,
1304
1302
1305
1303
strvec_pushl (& cpr .args , "submodule--helper" , "sync" ,
1306
1304
"--recursive" , NULL );
1307
- strvec_push (& cpr .args , "--super-prefix" );
1308
- strvec_pushf (& cpr .args , "%s/" , displaypath );
1309
-
1305
+ strvec_pushf (& cpr .args , "--super-prefix=%s/" , displaypath );
1310
1306
1311
1307
if (flags & OPT_QUIET )
1312
1308
strvec_push (& cpr .args , "--quiet" );
@@ -2534,10 +2530,9 @@ static void update_data_to_args(const struct update_data *update_data,
2534
2530
enum submodule_update_type update_type = update_data -> update_default ;
2535
2531
2536
2532
strvec_pushl (args , "submodule--helper" , "update" , "--recursive" , NULL );
2537
- if (update_data -> displaypath ) {
2538
- strvec_push (args , "--super-prefix" );
2539
- strvec_pushf (args , "%s/" , update_data -> displaypath );
2540
- }
2533
+ if (update_data -> displaypath )
2534
+ strvec_pushf (args , "--super-prefix=%s/" ,
2535
+ update_data -> displaypath );
2541
2536
strvec_pushf (args , "--jobs=%d" , update_data -> max_jobs );
2542
2537
if (update_data -> quiet )
2543
2538
strvec_push (args , "--quiet" );
0 commit comments