Commit 69bc0141 authored by Ivanq's avatar Ivanq

Git: Add receive.denyDeleteCurrent to Git.init()

parent e66eef4c
......@@ -1046,7 +1046,7 @@ Git.init = (root, zeroPage, name, email) => {
return zeroFS.writeFile(root + "/description", "Git Center repository");
})
.then(() => {
return zeroFS.writeFile(root + "/config", "[core]\n\trepositoryformatversion = 0\n\tfilemode = false\n\tbare = true\n\tsymlinks = false\n\tignorecase = true\n[receive]\n\tadvertisePushOptions = true\n");
return zeroFS.writeFile(root + "/config", "[core]\n\trepositoryformatversion = 0\n\tfilemode = false\n\tbare = true\n\tsymlinks = false\n\tignorecase = true\n[receive]\n\tadvertisePushOptions = true\n\tdenyDeleteCurrent = warn\n");
})
.then(() => {
git = new Git(root, zeroPage);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment