t3200: test --set-upstream-to with bogus refs
commit8a3e5ecdaa9fc45d7af58eb95bba0f39ca625a8d
authorJeff King <peff@peff.net>
Tue, 2 Apr 2013 19:02:53 +0000 (2 15:02 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 2 Apr 2013 23:14:06 +0000 (2 16:14 -0700)
tree1624bbeeb1f2812974ecc6348a2e4cacd31a10d2
parent961c5129d53554d4d71003899fab8dda846d7c2a
t3200: test --set-upstream-to with bogus refs

These tests pass with the current code, but let's make sure
we don't accidentally break the behavior in the future.

Note that our tests expect failure when we try to set the
upstream to or from a missing branch. Technically we are
just munging config here, so we do not need the refs to
exist. But seeing that they do exist is a good check that
the user has not made a typo.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3200-branch.sh