X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;ds=sidebyside;f=server-info.c;h=9ec744e9f2da294a21ac02b46f0ea0b35889ae54;hb=48c250a121a425a1860226b6a7061aecfbab5246;hp=906ce5b27242ca1e415a5410135d58f1c000e8b0;hpb=8146f19762c8fd67f6df3da4ba87a4e5ea880909;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; }