t0300: use more realistic inputs
commit73aafe9bc27585554181c58871a25e6d0f58a3dc
authorJeff King <peff@peff.net>
Sun, 19 Apr 2020 03:47:30 +0000 (18 20:47 -0700)
committerJonathan Nieder <jrnieder@gmail.com>
Sun, 19 Apr 2020 23:10:57 +0000 (19 16:10 -0700)
tree00a5987bea9b6a1f2e6bac03235dc34016d58517
parenta88dbd2f8c7fd8c1e2f63483da03bd6928e8791f
t0300: use more realistic inputs

Many of the tests in t0300 give partial inputs to git-credential,
omitting a protocol or hostname. We're checking only high-level things
like whether and how helpers are invoked at all, and we don't care about
specific hosts. However, in preparation for tightening up the rules
about when we're willing to run a helper, let's start using input that's
a bit more realistic: pretend as if http://example.com is being
examined.

This shouldn't change the point of any of the tests, but do note we have
to adjust the expected output to accommodate this (filling a credential
will repeat back the protocol/host fields to stdout, and the helper
debug messages and askpass prompt will change on stderr).

Signed-off-by: Jeff King <peff@peff.net>
Reviewed-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
t/t0300-credentials.sh