Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path must be a string. Received undefined #12

Open
marcuswhybrow opened this issue Sep 29, 2016 · 0 comments
Open

Path must be a string. Received undefined #12

marcuswhybrow opened this issue Sep 29, 2016 · 0 comments

Comments

@marcuswhybrow
Copy link

Using GitKit v0.1.0 to clone a repository with isBare = false I get the aforementioned error. Setting isBare to true doesn't give the error.

var isBare = false;
var repo = GitKit.Repository.createWithFS(NodeFS('/tmp/repo'), isBare);
var transport = new GitKit.HTTPTransport('https://github.com/marcuswhybrow/marcus.codes.git');

GitKit.RepoUtils.init(repo)
    .then(() => GitKit.TransferUtils.clone(repo, transport))

This is my stack trace:

"assertPath (path.js:8:11)",
"Object.posix.join (path.js:479:5)",
"Record.Repository.getGitPath (/var/task/node_modules/gitkit/lib/models/repo.js:65:43)",
"Record.Repository.readGitFile (/var/task/node_modules/gitkit/lib/models/repo.js:75:21)",
"Function.Ref.readFromRepo (/var/task/node_modules/gitkit/lib/models/ref.js:85:17)",
"Object.checkout (/var/task/node_modules/gitkit/lib/RepoUtils/checkout.js:79:16)",
"/var/task/node_modules/gitkit/lib/TransferUtils/clone.js:18:26",
"_fulfilled (/var/task/node_modules/gitkit/node_modules/q/q.js:834:54)",
"self.promiseDispatch.done (/var/task/node_modules/gitkit/node_modules/q/q.js:863:30)",
"Promise.promise.promiseDispatch (/var/task/node_modules/gitkit/node_modules/q/q.js:796:13)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant