X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=http-fetch.c;h=69299b7bd2a956266bf581df9c23589a97fca805;hb=2ce0edcd786b790fed580e7df56291619834d276;hp=923904f97f9274d09a0a0b08543492f78a141f79;hpb=eb4e67288bb9d66fb46092fa30d72c4bdded0c2a;p=git.git diff --git a/http-fetch.c b/http-fetch.c index 923904f97..69299b7bd 100644 --- a/http-fetch.c +++ b/http-fetch.c @@ -8,7 +8,6 @@ static const char http_fetch_usage[] = "git http-fetch " int main(int argc, const char **argv) { - const char *prefix; struct walker *walker; int commits_on_stdin = 0; int commits; @@ -57,14 +56,18 @@ int main(int argc, const char **argv) commits = 1; } + if (get_all == 0) + warning("http-fetch: use without -a is deprecated.\n" + "In a future release, -a will become the default."); + if (argv[arg]) str_end_url_with_slash(argv[arg], &url); - prefix = setup_git_directory(); + setup_git_directory(); git_config(git_default_config, NULL); - http_init(NULL); + http_init(NULL, url); walker = get_http_walker(url); walker->get_tree = get_tree; walker->get_history = get_history;