Comments (6)
@kittaakos ah, I think I know this one.
We set GIT_EXEC_PATH
to the same known location, and at least on macOS this path may be something different. You can check this by running git --exec-path
:
$ git --exec-path
/usr/local/Cellar/git/2.14.1/libexec/git-core
Two potential ways out of this:
- don't set
GIT_EXEC_PATH
if you already haveLOCAL_GIT_DIRECTORY
set, assume the user has configured Git correctly - run
git --exec-path
and set it as an environment variable if you haveLOCAL_GIT_DIRECTORY
set
from dugite.
Thank you, @shiftkey! Both approaches work perfectly. I would say; when one sets the GIT_LOCAL_DIRECTORY
variable one should be aware of setting the GIT_EXEC_PATH
environment variable too.
Unfortunately, even if I set both environment variables, the GIT_EXEC_PATH
gets overridden here.
The following would be my expectation about the behavior; when the custom GIT_EXEC_PATH
is set, then dugite
itself does not try to locate it again, but blindly uses the user specified path, just like with the LOCAL_GIT_DIRECTORY
.
Would that change make sense to you? Do you accept contributions? Also, please correct me if I misunderstood something. Thanks in advance!
from dugite.
Would that change make sense to you?
Yes! This makes sense, it was just me not considering the full range of scenarios. And I like respecting the existing environment variable, as it avoids us executing a git --exec-path
ourselves.
Do you accept contributions?
I do! Happy to review and work with you on a fix if you're feeling up to it!
from dugite.
Awesome! I was put on another project, but I do my best to come up with a PR in this week. Bear with me.
from dugite.
PR: #114.
from dugite.
Fixed by #114
from dugite.
Related Issues (20)
- How to login with username and accessToken? HOT 5
- Use in React Native HOT 1
- dugite/package.json: Unexpected end of JSON input in Electron 11 beta HOT 3
- GitProcess.exec cause CPU 100% and never resolve in Electron HOT 2
- Return process or PID in IGitResult HOT 7
- Slow tests fail on missing repository HOT 2
- Stream Commands to GitProcess HOT 3
- Any way of stopping Dugite from downloading Git? HOT 2
- ChainAlert: npm package release (1.108.0) has no matching tag in this repo HOT 2
- Simultaneous async git operations - best practice? HOT 1
- Proxy support seems to have regressed HOT 3
- How to run git command interactively?
- 'subtree' is not a git command
- Github Desktop Dugite fails on arm64 linux HOT 1
- rmSync is not defined HOT 1
- `execTask.cancel()` doesn't kill the git process properly HOT 4
- Missing require in dugite/script /download-git.js HOT 1
- Git exec takeup 500MB when installed with pnpm HOT 1
- Drop `electron` from repository tags HOT 3
- Request: Publish version 2.5.2 to the npm package registry HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dugite.