Thread (9 messages) flat view 9 messages, 5 authors, 2016-06-15

Re: [PATCH] builtin-clone: Implement git clone as a builtin command.

From: Daniel Barkalow <hidden>
Date: 2016-06-15 22:43:58

Possibly related (same subject, not in this thread)

On Wed, 12 Dec 2007, Kristian Høgsberg wrote:
Ugh, I meant builtin-remote there, sorry.  I use fetch_pack() like the shell
script does, and it seem a lot easier that trying to call fetch:

        struct fetch_pack_args args;

        args.uploadpack = option_upload_pack;
        args.quiet = option_quiet;
        args.fetch_all = 1;
        args.lock_pack = 0;
        args.keep_pack = 1;
        args.depth = option_depth;
        args.no_progress = 1;

        refs = fetch_pack(&args, argv[0], 0, NULL, NULL);
Ah, but that only works for git native protocol remote repositories. 
Calling fetch instead would mean that other protocols also work without 
any fuss.

	-Daniel
*This .sig left intentionally blank*
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help