diff options
author | Russell Belfer <rb@github.com> | 2013-12-18 11:48:57 -0800 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2014-04-01 09:45:20 -0700 |
commit | 8286300a1e2d24dfe184316c0f9798f2c69d0ef4 (patch) | |
tree | b0ffb64c15a84f0cb1d138587e395986da7b1c7a /src/commit.c | |
parent | 18234b14ad55157581ca26ec763afc1af3ec6e76 (diff) | |
download | libgit2-8286300a1e2d24dfe184316c0f9798f2c69d0ef4.tar.gz |
Fix git_submodule_sync and add new config helper
This fixes `git_submodule_sync` to correctly update the remote URL
of the default branch of the submodule along with the URL in the
parent repository config (i.e. match core Git's behavior).
Also move some useful helper logic from the submodule code into
a shared config API `git_config__update_entry` that can either set
or delete an entry with constraints like not overwriting or not
creating a new entry. I used that helper to update a couple other
places in the code.
Diffstat (limited to 'src/commit.c')
0 files changed, 0 insertions, 0 deletions