]> git.proxmox.com Git - libgit2.git/commit
remote: accept a repo and name for renaming
authorCarlos Martín Nieto <cmn@dwim.me>
Fri, 24 Oct 2014 14:25:59 +0000 (16:25 +0200)
committerCarlos Martín Nieto <cmn@dwim.me>
Fri, 24 Oct 2014 14:25:59 +0000 (16:25 +0200)
commit46c8f7f8459e7062ca04d1cb8e11cf84e5cfbd0f
tree990d602b46e956b460ca9819d025dc0dfda27024
parent4bb6ffb6bb8ad9d49eb173350be965183cd09c96
remote: accept a repo and name for renaming

Remote objects are not meant to be changed from under the user. We did
this in rename, but only the name and left the refspecs, such that a
save would save the wrong refspecs (and a fetch and anything else would
use the wrong refspecs).

Instead, let's simply take a name and not change any loaded remote from
under the user.
CHANGELOG.md
include/git2/remote.h
src/remote.c
tests/network/remote/rename.c
tests/submodule/add.c