X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=shallow.c;h=ce45297940d417e3454b08d3f0c29f5cc6d93658;hb=ddc56d4710fa004c922349407f3de0c3adf90ac9;hp=02fdbfc554c462c1eecdf1ddc6d17edbc1d8d853;hpb=0890c8aa0dd2f535196babc6846941fdf52e49ba;p=thirdparty%2Fgit.git diff --git a/shallow.c b/shallow.c index 02fdbfc554..ce45297940 100644 --- a/shallow.c +++ b/shallow.c @@ -43,6 +43,13 @@ int register_shallow(struct repository *r, const struct object_id *oid) int is_repository_shallow(struct repository *r) { + /* + * NEEDSWORK: This function updates + * r->parsed_objects->{is_shallow,shallow_stat} as a side effect but + * there is no corresponding function to clear them when the shallow + * file is updated. + */ + FILE *fp; char buf[1024]; const char *path = r->parsed_objects->alternate_shallow_file;