• J
    remote.c: "git-push frotz" should update what matches at the source. · 1ed10b88
    Junio C Hamano 提交于
    Earlier, when the local repository has a branch "frotz" and the
    remote repository has a tag "frotz" (but not branch "frotz"),
    "git-push frotz" mistakenly updated the tag at the remote side.
    This was because the partial refname matching code was applied
    independently on both source and destination side.
    
    With this fix, when a colon-less refspec is given to git-push,
    we first match it with the refs in the source repository, and
    update the matching ref in the destination repository.
    Signed-off-by: NJunio C Hamano <gitster@pobox.com>
    1ed10b88
t5516-fetch-push.sh 5.0 KB