We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 744e469 commit d78db84Copy full SHA for d78db84
1 file changed
builtin/clone.c
@@ -294,9 +294,14 @@ static int add_one_reference(struct string_list_item *item, void *cb_data)
294
char *ref_git_git = mkpathdup("%s/.git", ref_git);
295
free(ref_git);
296
ref_git = ref_git_git;
297
- } else if (!is_directory(mkpath("%s/objects", ref_git)))
+ } 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);
302
die(_("reference repository '%s' is not a local repository."),
303
item->string);
304
+ }
305
306
if (!access(mkpath("%s/shallow", ref_git), F_OK))
307
die(_("reference repository '%s' is shallow"), item->string);
0 commit comments