Re: [PATCH] builtin-clone: Implement git clone as a builtin command.
- From
Daniel Barkalow <barkalow@iabervon.org>
- Date
- Dec 12, 2007, 18:40 UTC
- Message-ID
- <Pine.LNX.4.64.0712121330541.5349@iabervon.org>
- In-Reply-To
- <1197483943.10132.4.camel@hinata.boston.redhat.com>
On Wed, 12 Dec 2007, Kristian H�gsberg wrote:
Show 14 quoted lines
> 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*