]> git.proxmox.com Git - libgit2.git/commit - tests/libgit2/refs/branches/upstream.c
branch: error out if we cannot find the remote
authorCarlos Martín Nieto <cmn@dwim.me>
Fri, 22 May 2015 10:24:09 +0000 (12:24 +0200)
committerCarlos Martín Nieto <cmn@dwim.me>
Fri, 22 May 2015 10:31:39 +0000 (12:31 +0200)
commit5014fe95f5691ec9c48e1bb33fa03d925a4159f0
tree2d2e55a094f98cd660b02e6b3c9f82ca029f74d9
parent7cd4ba1b17d579134ac6cc172fc858021d4aa407
branch: error out if we cannot find the remote

When we look for which remote corresponds to a remote-tracking branch,
we look in the refspecs to see which ones matches. If none do, we should
abort. We currently ignore the error message from this operation, so
let's not do that anymore.

As part of the test we're writing, let's test for the expected behaviour
if we cannot find a refspec which tells us what the remote-tracking
branch for a remote would look like.
src/branch.c
tests/refs/branches/upstream.c