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*