Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-12-09 01:14:49 +0300
committerJunio C Hamano <gitster@pobox.com>2015-12-09 01:14:49 +0300
commitb1cda70fff238aa8947dc8b527dc4a5f6bd4ede0 (patch)
treebbb316ed03593eb48779bb5fa60dbce0c5614161 /builtin
parentfa5f2398e5163f855b0a680b0bf704e2c2e7da24 (diff)
parent0845122c39c415fa50904ee94c6b60e4e722466b (diff)
Merge branch 'dt/refs-backend-pre-vtable'
Code preparation for pluggable ref backends. * dt/refs-backend-pre-vtable: refs: break out ref conflict checks files_log_ref_write: new function initdb: make safe_create_dir public refs: split filesystem-based refs code into a new file refs/refs-internal.h: new header file refname_is_safe(): improve docstring pack_if_possible_fn(): use ref_type() instead of is_per_worktree_ref() copy_msg(): rename to copy_reflog_msg() verify_refname_available(): new function verify_refname_available(): rename function
Diffstat (limited to 'builtin')
-rw-r--r--builtin/init-db.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/builtin/init-db.c b/builtin/init-db.c
index f59f40768e..07229d60f1 100644
--- a/builtin/init-db.c
+++ b/builtin/init-db.c
@@ -24,18 +24,6 @@ static int init_shared_repository = -1;
static const char *init_db_template_dir;
static const char *git_link;
-static void safe_create_dir(const char *dir, int share)
-{
- if (mkdir(dir, 0777) < 0) {
- if (errno != EEXIST) {
- perror(dir);
- exit(1);
- }
- }
- else if (share && adjust_shared_perm(dir))
- die(_("Could not make %s writable by group"), dir);
-}
-
static void copy_templates_1(struct strbuf *path, struct strbuf *template,
DIR *dir)
{