Comments (1)
@ysabri when you install the dugite
package, it'll fetch the embedded Git distribution for your platform and extract it on disk alongside the other package contents.
You should have a layout similar to this:
~/src/desktop/app/node_modules/dugite/
$ tree -L 3
.
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── build
│ └── lib
│ ├── errors.d.ts
│ ├── errors.js
│ ├── errors.js.map
│ ├── git-environment.d.ts
│ ├── git-environment.js
│ ├── git-environment.js.map
│ ├── git-process.d.ts
│ ├── git-process.js
│ ├── git-process.js.map
│ ├── index.d.ts
│ ├── index.js
│ └── index.js.map
├── git
│ ├── bin
│ │ └── git
│ ├── libexec
│ │ └── git-core
│ └── share
│ └── git-core
├── node_modules
├── package.json
└── script
├── config.js
└── download-git.js
10 directories, 20 files
To resolve the Git distribution directory, this function is used if LOCAL_GIT_DIRECTORY
is not set:
Lines 3 to 8 in def353b
This is basically looking for the git
directory at the root of the package.
When GIT_EXEC_PATH
is also not set, it's at a known location based on the current platform. That's this code:
Lines 52 to 61 in def353b
Let me know if you have any other questions about this.
from dugite.
Related Issues (20)
- 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 4
- 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
- Unable to use git difftool? HOT 1
- spawn Unknown system error -86 HOT 3
- Looks like `--keep-redundant-commits` was deprecated. HOT 2
- Actualizar HOT 1
- Fh HOT 1
- 6fd1619248e306ad97ed25f326ef87368dd20b62
- Can't resolve 'fs' HOT 3
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.