t0060: verify that absolute_path() fails if passed the empty string
[gitweb.git] / builtin / clone.c
index f86aaf18f792d00978c19f5bd9affaf9c3e6fd6f..920ef7f8c9fff25f613b4261f215a0cb7dc83b61 100644 (file)
@@ -708,7 +708,7 @@ int cmd_clone(int argc, const char **argv, const char *prefix)
                if (safe_create_leading_directories_const(work_tree) < 0)
                        die_errno(_("could not create leading directories of '%s'"),
                                  work_tree);
-               if (!dest_exists && mkdir(work_tree, 0755))
+               if (!dest_exists && mkdir(work_tree, 0777))
                        die_errno(_("could not create work tree dir '%s'."),
                                  work_tree);
                set_git_work_tree(work_tree);