diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2015-03-17 09:44:25 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2015-03-17 09:44:25 -0400 |
commit | c07d02064d1c58dea47b48580abf0523f59c1bda (patch) | |
tree | 9e40bab62ae98763cc67d9f5afbb89ad7383d40a /src | |
parent | d675982a15388d8c413acda139b4662062cf3286 (diff) | |
parent | e6903ea278c43895cce234bb956b31570b4bbb07 (diff) | |
download | libgit2-c07d02064d1c58dea47b48580abf0523f59c1bda.tar.gz |
Merge pull request #2977 from pks-t/submodule-sync-url-fix
Fix git_submodule_sync writing URL to wrong key.
Diffstat (limited to 'src')
-rw-r--r-- | src/submodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/submodule.c b/src/submodule.c index 567ab748e..c3bb6fe0e 100644 --- a/src/submodule.c +++ b/src/submodule.c @@ -1091,10 +1091,10 @@ int git_submodule_sync(git_submodule *sm) /* return error from reading submodule config */; else if ((error = lookup_head_remote_key(&remote_name, smrepo)) < 0) { giterr_clear(); - error = git_buf_sets(&key, "branch.origin.remote"); + error = git_buf_sets(&key, "remote.origin.url"); } else { error = git_buf_join3( - &key, '.', "branch", remote_name.ptr, "remote"); + &key, '.', "remote", remote_name.ptr, "url"); git_buf_free(&remote_name); } |