diff options
author | Nick Hengeveld <nickh@reactrix.com> | 2005-10-10 23:22:01 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-10-10 23:22:01 -0700 |
commit | 11f0dafe2be419240c0006c3e9112cbad3568baf (patch) | |
tree | 57108f4d25274418051dc75df946120a270c4d0a /fetch.c | |
parent | 380792390e05e744f9d7eefbc35d1db80e44e27a (diff) | |
download | git-11f0dafe2be419240c0006c3e9112cbad3568baf.tar.gz |
[PATCH] Don't fetch objects that exist in the local repository
Be sure not to fetch objects that already exist in the local repository.
The main process loop no longer performs this check, http-fetch now checks
prior to starting a new request queue entry and when fetch_object() is called,
and local-fetch now checks when fetch_object() is called.
As discussed in this thread: http://marc.theaimsgroup.com/?t=112854890500001
Signed-off-by: Nick Hengeveld <nickh@reactrix.com>
Diffstat (limited to 'fetch.c')
-rw-r--r-- | fetch.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -165,7 +165,7 @@ static int loop(void) * the queue because we needed to fetch it first. */ if (! (obj->flags & TO_SCAN)) { - if (!has_sha1_file(obj->sha1) && fetch(obj->sha1)) { + if (fetch(obj->sha1)) { report_missing(obj->type ? obj->type : "object", obj->sha1); |