diff options
author | Patrick Steinhardt <ps@pks.im> | 2015-03-12 18:05:07 +0300 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2015-03-12 18:05:07 +0300 |
commit | e6903ea278c43895cce234bb956b31570b4bbb07 (patch) | |
tree | eba3fe7e0d518b256079de91856052911d992134 /tests/submodule | |
parent | 15f581747c57f1bb5f3c3a173139789ec759c964 (diff) |
Fix git_submodule_sync writing URL to wrong key.
Currently git_submodule_sync writes the submodule's URL to the
key 'branch.<REMOTE_NAME>.remote' while the reference
implementation of `git submodule sync` writes to
'remote.<REMOTE_NAME>.url', which is the intended behavior
according to git-submodule(1).
Diffstat (limited to 'tests/submodule')
-rw-r--r-- | tests/submodule/modify.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/submodule/modify.c b/tests/submodule/modify.c index 3d7269bff..fcb4c22a8 100644 --- a/tests/submodule/modify.c +++ b/tests/submodule/modify.c @@ -118,11 +118,11 @@ void test_submodule_modify__sync(void) /* check that submodule config is updated */ assert_submodule_url_is_synced( - sm1, "submodule."SM1".url", "branch.origin.remote"); + sm1, "submodule."SM1".url", "remote.origin.url"); assert_submodule_url_is_synced( - sm2, "submodule."SM2".url", "branch.origin.remote"); + sm2, "submodule."SM2".url", "remote.origin.url"); assert_submodule_url_is_synced( - sm3, "submodule."SM3".url", "branch.origin.remote"); + sm3, "submodule."SM3".url", "remote.origin.url"); git_submodule_free(sm1); git_submodule_free(sm2); |