]> git.proxmox.com Git - libgit2.git/commit - tests/libgit2/network/remote/remotes.c
remote: add a failing test for checking the current branch's upstream
authorCarlos Martín Nieto <cmn@dwim.me>
Sun, 2 Nov 2014 19:03:23 +0000 (20:03 +0100)
committerCarlos Martín Nieto <cmn@dwim.me>
Sun, 2 Nov 2014 19:03:23 +0000 (20:03 +0100)
commit0f838d27f19f611651df1a4a031196815ebe70cb
treef2881c17f59e056a00ba2b3d5f95ad95e03c1081
parent521c0cab7a02f718e4a7e3c2ae7ef81d6f16ffd1
remote: add a failing test for checking the current branch's upstream

When we update FETCH_HEAD we check whether the remote is the current
branch's upstream remote. The code does not check whether the current
refspec is relevant for this reference but always tries to perform the
reverse transformation, which causes it to error out if the refspec
doesn't match the reference.

Thanks to Pierre-Olivier Latour for the reproduction recipe.
tests/network/remote/remotes.c