clone: use git protocol for cloning shallow repo locally
[gitweb.git] / git.c
diff --git a/git.c b/git.c
index cb5208de6a5aab7c222a1d1655fe37089a119fe0..179c4f6ff81d1f482e62248e33eacb74327df2b8 100644 (file)
--- a/git.c
+++ b/git.c
@@ -162,7 +162,7 @@ static int handle_options(const char ***argv, int *argc, int *envchanged)
                } else if (!strcmp(cmd, "--shallow-file")) {
                        (*argv)++;
                        (*argc)--;
-                       set_alternate_shallow_file((*argv)[0]);
+                       set_alternate_shallow_file((*argv)[0], 1);
                        if (envchanged)
                                *envchanged = 1;
                } else if (!strcmp(cmd, "-C")) {