File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -215,24 +215,16 @@ static int commit_graph_compatible(struct repository *r)
215
215
216
216
if (read_replace_refs ) {
217
217
prepare_replace_object (r );
218
- if (hashmap_get_size (& r -> objects -> replace_map -> map )) {
219
- warning (_ ("repository contains replace objects; "
220
- "skipping commit-graph" ));
218
+ if (hashmap_get_size (& r -> objects -> replace_map -> map ))
221
219
return 0 ;
222
- }
223
220
}
224
221
225
222
prepare_commit_graft (r );
226
223
if (r -> parsed_objects &&
227
- (r -> parsed_objects -> grafts_nr || r -> parsed_objects -> substituted_parent )) {
228
- warning (_ ("repository contains (deprecated) grafts; "
229
- "skipping commit-graph" ));
224
+ (r -> parsed_objects -> grafts_nr || r -> parsed_objects -> substituted_parent ))
230
225
return 0 ;
231
- }
232
- if (is_repository_shallow (r )) {
233
- warning (_ ("repository is shallow; skipping commit-graph" ));
226
+ if (is_repository_shallow (r ))
234
227
return 0 ;
235
- }
236
228
237
229
return 1 ;
238
230
}
You can’t perform that action at this time.
0 commit comments