Re: [PATCH 02/10] test-lib: add helper functions for config
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 18, 2011, 21:10 UTC
- Message-ID
- <7v1uwi8ikk.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20110818050114.GB2889@sigill.intra.peff.net>
Thanks.
Show 9 quoted lines
> ...
> +# Unset a configuration variable, but don't fail if it doesn't exist.
> +test_unconfig () {
> + git config --unset-all "$@"
> + config_status=$?
> + case "$config_status" in
> + 5) # ok, nothing to usnet
> + config_status=0
> + ;;Will queue with 's/nothing to usnet/nothing to unset/'.