Skip to content

Commit bb31b42

Browse files
committed
fixup! push: support pushing to a remote group
* Do not lose the blank between functions. * remote_group.nr is of size_t, so the compiler will complain about this comparison that stops a platform natural integer approaching the limit from below for type and signedness mismatch, even though it would be insane to try defining a remote group whose size would not fit platform natural integer.
1 parent d7e6f93 commit bb31b42

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

builtin/push.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,7 @@ static int git_push_config(const char *k, const char *v,
543543

544544
return git_default_config(k, v, ctx, NULL);
545545
}
546+
546547
int cmd_push(int argc,
547548
const char **argv,
548549
const char *prefix,
@@ -687,7 +688,7 @@ int cmd_push(int argc,
687688
* same group.
688689
*/
689690
base_flags = flags;
690-
for (int i = 0; i < remote_group.nr; i++) {
691+
for (size_t i = 0; i < remote_group.nr; i++) {
691692
int iter_flags = base_flags;
692693
struct remote *r = pushremote_get(remote_group.items[i].string);
693694
if (!r)

0 commit comments

Comments
 (0)