Skip to content

Commit

Permalink
Mark http-fetch without -a as deprecated
Browse files Browse the repository at this point in the history
As the use of http-fetch without -a can create an object store that is
invalid to the point where it cannot even be fsck'd, mark it as
deprecated.  A future release should change the default and then
remove the option entirely.

Signed-off-by: Ben Walton <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
Ben Walton authored and gitster committed Aug 24, 2011
1 parent 3d3d282 commit a6c786f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Documentation/git-http-fetch.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ DESCRIPTION
-----------
Downloads a remote git repository via HTTP.

*NOTE*: use of this command without -a is deprecated. The -a
behaviour will become the default in a future release.

OPTIONS
-------
commit-id::
Expand Down
4 changes: 4 additions & 0 deletions http-fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ 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);

Expand Down

0 comments on commit a6c786f

Please sign in to comment.