The Wayback Machine - https://web.archive.org/web/20200916183751/https://github.com/nodegit/nodegit/issues/1768
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

Repository.open is not able to find .git in Docker #1768

Open
27prajaktapatil opened this issue Mar 23, 2020 · 0 comments
Open

Repository.open is not able to find .git in Docker #1768

27prajaktapatil opened this issue Mar 23, 2020 · 0 comments

Comments

@27prajaktapatil
Copy link

@27prajaktapatil 27prajaktapatil commented Mar 23, 2020

System information

  • node version: 8.12.0
  • npm or yarn version: 6.4.1
  • OS/version/architecture: CentOs 7-5
  • Applicable nodegit version: 0.26.4
node -v
npm -v # (or yarn -v)
node -e "console.log(process.platform)"
node -e "console.log(require('os').release())"
node -e "console.log(console.log(process.arch))"

Hello , I am trying to install nodegit on CentOs 7-5, inside a Docker container.

`
var pathToRepo = './automaton';
nodegit.Repository.open(path.resolve(pathToRepo + '/.git'))
'
I get the following error:
error: Error: failed to resolve path '/workspace/automaton/../.git/modules/automaton': No such file or directory.

console.log(__dirname: ${__dirname});
output: __dirname: /workspace/test

console.log(path.resolve(pathToRepo + '/.git'): ${path.resolve(pathToRepo + '/.git')});
output:path.resolve(pathToRepo + '/.git'): /workspace/automaton/.git

I even did ls -al on my /wokspace/automaton repository, it has the .git file.

Anybody has any idea about this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.