Staging
v0.5.2
https://github.com/git/git
Revision 22c67ca88ec65c4f278e8c82b2d98f3bd025238b authored by Junio C Hamano on 13 September 2005, 05:20:02 UTC, committed by Junio C Hamano on 13 September 2005, 05:52:52 UTC
When git-fetch-pack fails, the command does not notice the failure
and instead pretended nothing was fetched and there was nothing wrong.

Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 365527a
Raw File
Tip revision: 22c67ca88ec65c4f278e8c82b2d98f3bd025238b authored by Junio C Hamano on 13 September 2005, 05:20:02 UTC
Propagate errors from fetch-pack correctly to git-fetch.
Tip revision: 22c67ca
show-rev-cache.c
#include "cache.h"
#include "rev-cache.h"

static char *show_rev_cache_usage =
"git-show-rev-cache <rev-cache-file>";

int main(int ac, char **av)
{
	while (1 < ac && av[0][1] == '-') {
		/* do flags here */
		break;
		ac--; av++;
	}
	if (ac != 2)
		usage(show_rev_cache_usage);

	return read_rev_cache(av[1], stdout, 1);
}
back to top