Revision 73c838e4c9437a0c41082c32a3a832aa385460a9 authored by Junio C Hamano on 08 January 2007, 10:08:47 UTC, committed by Junio C Hamano on 08 January 2007, 11:02:11 UTC
We used to say "you are not on a branch" before the initial
commit.  This is incorrect -- the user is on a branch yet to be
born, but its name has been already determined.

Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 6488610
Raw File
update-server-info.c
#include "cache.h"

static const char update_server_info_usage[] =
"git-update-server-info [--force]";

int main(int ac, char **av)
{
	int i;
	int force = 0;
	for (i = 1; i < ac; i++) {
		if (av[i][0] == '-') {
			if (!strcmp("--force", av[i]) ||
			    !strcmp("-f", av[i]))
				force = 1;
			else
				usage(update_server_info_usage);
		}
	}
	if (i != ac)
		usage(update_server_info_usage);

	setup_git_directory();

	return !!update_server_info(force);
}
back to top