aboutsummaryrefslogtreecommitdiffstats
path: root/transport.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-11-06 15:50:20 +0900
committerJunio C Hamano <gitster@pobox.com>2018-11-06 15:50:20 +0900
commit1443ca9a7243d65d6b7d47ae5089cacbf0869ac4 (patch)
tree45a0e7732c6a7d5dd3981a6bab82711597e88724 /transport.c
parent65f7a3232be8f2cbb0a6e841c1a7691db2e8bd03 (diff)
parent6245b98b0e4e6c59b24794fa63f29b65d851569e (diff)
downloadgit-1443ca9a7243d65d6b7d47ae5089cacbf0869ac4.tar.gz
Merge branch 'nd/submodule-unused-vars'
Code clean-up. * nd/submodule-unused-vars: submodule.c: remove some of the_repository references
Diffstat (limited to 'transport.c')
-rw-r--r--transport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/transport.c b/transport.c
index 01ce11a325..5a74b609ff 100644
--- a/transport.c
+++ b/transport.c
@@ -1172,7 +1172,7 @@ int transport_push(struct transport *transport,
oid_array_append(&commits,
&ref->new_oid);
- if (!push_unpushed_submodules(&the_index,
+ if (!push_unpushed_submodules(the_repository,
&commits,
transport->remote,
rs,
@@ -1197,7 +1197,7 @@ int transport_push(struct transport *transport,
oid_array_append(&commits,
&ref->new_oid);
- if (find_unpushed_submodules(&the_index,
+ if (find_unpushed_submodules(the_repository,
&commits,
transport->remote->name,
&needs_pushing)) {