diff options
Diffstat (limited to 'http-fetch.c')
-rw-r--r-- | http-fetch.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/http-fetch.c b/http-fetch.c index 923904f97f..8c4c5d2224 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,10 +56,14 @@ 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); |