https://github.com/git/git
Revision 70cce99441eac7ae35aa51586e71dd516ba0dc2e authored by Torsten Bögershausen on 08 November 2013, 17:54:05 UTC, committed by Junio C Hamano on 11 November 2013, 20:18:05 UTC
"git fetch-pack" allows [<host>:]<directory> to point out the source
repository.
Use the term <repository>, which is already used in "git fetch" or "git pull"
to describe URLs supported by Git.

Signed-off-by: Torsten Bögershausen <tboegi@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent d7d2c87
Raw File
Tip revision: 70cce99441eac7ae35aa51586e71dd516ba0dc2e authored by Torsten Bögershausen on 08 November 2013, 17:54:05 UTC
git-fetch-pack uses URLs like git-fetch
Tip revision: 70cce99
test-subprocess.c
#include "cache.h"
#include "run-command.h"

int main(int argc, char **argv)
{
	struct child_process cp;
	int nogit = 0;

	setup_git_directory_gently(&nogit);
	if (nogit)
		die("No git repo found");
	if (argc > 1 && !strcmp(argv[1], "--setup-work-tree")) {
		setup_work_tree();
		argv++;
	}
	memset(&cp, 0, sizeof(cp));
	cp.git_cmd = 1;
	cp.argv = (const char **)argv + 1;
	return run_command(&cp);
}
back to top