X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=server-info.c;h=9ec744e9f2da294a21ac02b46f0ea0b35889ae54;hb=a961d1f1ea2e3aaef0ff3e75920d1cd830d9b423;hp=906ce5b27242ca1e415a5410135d58f1c000e8b0;hpb=77f143bf3e218857ec8e5244d7e862e8e0c1a041;p=git.git diff --git a/server-info.c b/server-info.c index 906ce5b27..9ec744e9f 100644 --- a/server-info.c +++ b/server-info.c @@ -113,11 +113,8 @@ static int read_pack_info_file(const char *infofile) goto out_stale; break; case 'D': /* we used to emit D but that was misguided. */ - goto out_stale; - break; case 'T': /* we used to emit T but nobody uses it. */ goto out_stale; - break; default: error("unrecognized: %s", line); break; @@ -246,7 +243,7 @@ int update_server_info(int force) errs = errs | update_info_packs(force); /* remove leftover rev-cache file if there is any */ - unlink(git_path("info/rev-cache")); + unlink_or_warn(git_path("info/rev-cache")); return errs; }