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

Error in git clone ... #38

Open
a1994846931931 opened this issue Jun 30, 2020 · 0 comments
Open

Error in git clone ... #38

a1994846931931 opened this issue Jun 30, 2020 · 0 comments

Comments

@a1994846931931
Copy link

I currently encountered a problem using command 'clone'. In:

https://github.com/theia-ide/dugite-extra/blob/f7e9a1ab65ad60370d5dfbb3104b14e2db1c795d/src/command/clone.ts#L79

__dirname is passed to git(), which is then set as cwd in:

https://github.com/desktop/dugite/blob/8bc74a7bb0defc5830ad8cc5cc59987fcbbc5575/lib/git-process.ts#L161

In my situation, __dirname points to a non-existing path (the program is packaged into a binary that uses a virtual system that produces a fake __dirname), which leads to an error that says Git could not be found at the expected path: '/usr/bin/git'. This might be a problem with how the application is packaged ...

Setting cwd as __dirname makes non-sense here. Could you please just use an empty string instead? That would easily fix the problem. Thanks!

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