X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=server-info.c;h=0d1312ca56d52daa3fc692984d4d3abaf3425791;hb=fed1b5cac0cc3ae324dc004181a276ea16589951;hp=f9be5a7f60c1cc5208e7c91367ecb28014106f18;hpb=c288a2f1316b642ff073d4213cf691297610503c;p=git.git diff --git a/server-info.c b/server-info.c index f9be5a7f6..0d1312ca5 100644 --- a/server-info.c +++ b/server-info.c @@ -38,6 +38,7 @@ static int update_info_refs(int force) return error("unable to update %s", path0); 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; }