X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=server-info.c;h=a051e49a9ea2f605bdc278394de731ff4c55e627;hb=84ef033832af9e0be886214c70b2006b08630072;hp=f9be5a7f60c1cc5208e7c91367ecb28014106f18;hpb=c182ec90d824168cfb70494bb920c0a2fb590d98;p=git.git diff --git a/server-info.c b/server-info.c index f9be5a7f6..a051e49a9 100644 --- a/server-info.c +++ b/server-info.c @@ -35,9 +35,10 @@ static int update_info_refs(int force) safe_create_leading_directories(path0); info_ref_fp = fopen(path1, "w"); if (!info_ref_fp) - return error("unable to update %s", path0); + return error("unable to update %s", path1); for_each_ref(add_info_ref, NULL); fclose(info_ref_fp); + adjust_shared_perm(path1); rename(path1, path0); free(path0); free(path1); @@ -227,6 +228,7 @@ static int update_info_packs(int force) return error("cannot open %s", name); write_pack_info_file(fp); fclose(fp); + adjust_shared_perm(name); rename(name, infofile); return 0; }