diff options
author | Junio C Hamano <junkio@cox.net> | 2005-09-18 23:11:53 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-09-18 23:11:53 +0200 |
commit | 029f6de377c7e0484f5c4cf070934599580f1784 (patch) | |
tree | aab9c62d2e1f0fc2a84cb5e4a9994cdcb08391d1 /fetch.c | |
parent | Improve the safety check used in fetch.c (diff) | |
download | git-029f6de377c7e0484f5c4cf070934599580f1784.tar.xz git-029f6de377c7e0484f5c4cf070934599580f1784.zip |
fetch() assumes we do not have the object.
Bugfix for the previous one.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'fetch.c')
-rw-r--r-- | fetch.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -174,7 +174,7 @@ static int loop(void) * the queue because we needed to fetch it first. */ if (! (obj->flags & TO_SCAN)) { - if (fetch(obj->sha1)) { + if (!has_sha1_file(obj->sha1) && fetch(obj->sha1)) { report_missing(obj->type ? obj->type : "object", obj->sha1); |