| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,6 +7,7 @@ var Revwalk = require("./revwalk"); | |||
| 7 | 7 | var Commit = require("./commit"); | |
| 8 | 8 | var Remote = require("./remote"); | |
| 9 | 9 | var Promise = require("nodegit-promise"); | |
| 10 | + var normalizeOptions = require("./util/normalize_options"); | ||
| 10 | 11 | ||
| 11 | 12 | var TreeBuilder = NodeGit.Treebuilder; | |
| 12 | 13 | var Repository = NodeGit.Repository; | |
@@ -618,4 +619,12 @@ Repository.prototype.mergeBranches = function(to, from, signature) { | |||
| 618 | 619 | }); | |
| 619 | 620 | }; | |
| 620 | 621 | ||
| 622 | + // Override Repository.initExt to normalize initoptions | ||
| 623 | + var initExt = Repository.initExt; | ||
| 624 | + Repository.initExt = function(repo_path, opts) { | ||
| 625 | + opts = normalizeOptions(opts, NodeGit.RepositoryInitOptions); | ||
| 626 | + return initExt(repo_path, opts); | ||
| 627 | + }; | ||
| 628 | + | ||
| 629 | + | ||
| 621 | 630 | module.exports = Repository; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments