File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -294,9 +294,14 @@ static int add_one_reference(struct string_list_item *item, void *cb_data)
294
294
char * ref_git_git = mkpathdup ("%s/.git" , ref_git );
295
295
free (ref_git );
296
296
ref_git = ref_git_git ;
297
- } else if (!is_directory (mkpath ("%s/objects" , ref_git )))
297
+ } else if (!is_directory (mkpath ("%s/objects" , ref_git ))) {
298
+ struct strbuf sb = STRBUF_INIT ;
299
+ if (get_common_dir (& sb , ref_git ))
300
+ die (_ ("reference repository '%s' as a linked checkout is not supported yet." ),
301
+ item -> string );
298
302
die (_ ("reference repository '%s' is not a local repository." ),
299
303
item -> string );
304
+ }
300
305
301
306
if (!access (mkpath ("%s/shallow" , ref_git ), F_OK ))
302
307
die (_ ("reference repository '%s' is shallow" ), item -> string );
You can’t perform that action at this time.
0 commit comments