isomorphic-git 1.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE.md ADDED
@@ -0,0 +1,7 @@
1
+ Copyright 2017-2018 the 'isomorphic-git' authors
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,384 @@
1
+ <p align="center">
2
+ <img src="https://raw.githubusercontent.com/isomorphic-git/isomorphic-git/main/website/static/img/isomorphic-git-logo.svg?sanitize=true" alt="" height="150"/>
3
+ </p>
4
+
5
+ # isomorphic-git
6
+
7
+ `isomorphic-git` is a pure JavaScript reimplementation of git that works in both Node.js and browser JavaScript environments. It can read and write to git repositories, fetch from and push to git remotes (such as GitHub), all without any native C++ module dependencies.
8
+
9
+ ## Goals
10
+
11
+ Isomorphic-git aims for 100% interoperability with the canonical git implementation. This means it does all its operations by modifying files in a ".git" directory just like the git you are used to. The included `isogit` CLI can operate on git repositories on your desktop or server.
12
+
13
+ This library aims to be a complete solution with no assembly required.
14
+ The API has been designed with modern tools like Rollup and Webpack in mind.
15
+ By providing functionality as individual functions, code bundlers can produce smaller bundles by including only the functions your application uses.
16
+
17
+ The project includes type definitions so you can enjoy static type-checking and intelligent code completion in editors like VS Code and [CodeSandbox](https://codesandbox.io).
18
+
19
+ ## Supported Environments
20
+
21
+ The following environments are tested in CI and will continue to be supported until the next breaking version:
22
+
23
+ <table width="100%">
24
+ <tr>
25
+ <td align="center"><img src="https://raw.githubusercontent.com/isomorphic-git/isomorphic-git/main/website/static/img/browsers/node.webp" alt="" width="64" height="64"><br> Node 10</td>
26
+ <td align="center"><img src="https://raw.githubusercontent.com/alrra/browser-logos/bc47e4601d2c1fd46a7912f9aed5cdda4afdb301/src/chrome/chrome.svg?sanitize=true" alt="" width="64" height="64"><br> Chrome 79</td>
27
+ <td align="center"><img src="https://raw.githubusercontent.com/alrra/browser-logos/bc47e4601d2c1fd46a7912f9aed5cdda4afdb301/src/edge/edge.svg?sanitize=true" alt="" width="64" height="64"><br> Edge 79</td>
28
+ <td align="center"><img src="https://raw.githubusercontent.com/alrra/browser-logos/bc47e4601d2c1fd46a7912f9aed5cdda4afdb301/src/firefox/firefox.svg?sanitize=true" alt="" width="64" height="64"><br> Firefox 72</td>
29
+ <td align="center"><img src="https://raw.githubusercontent.com/alrra/browser-logos/bc47e4601d2c1fd46a7912f9aed5cdda4afdb301/src/safari/safari_64x64.png" alt="" width="64" height="64"><br> Safari 13</td>
30
+ <td align="center"><img src="https://upload.wikimedia.org/wikipedia/commons/8/82/Android_logo_2019.svg" alt="" width="64" height="64"><br> Android 10</td>
31
+ <td align="center"><img src="https://upload.wikimedia.org/wikipedia/commons/d/d6/IOS_13_logo.svg" alt="" width="64" height="64"><br> iOS 13</td>
32
+ </tr>
33
+ </table>
34
+
35
+ ## Upgrading from version 0.x to version 1.x?
36
+
37
+ See the full [Release Notes](https://github.com/isomorphic-git/isomorphic-git/releases/tag/v1.0.0) on GitHub and the release [Blog Post](https://isomorphic-git.org/blog/2020/02/25/version-1-0-0).
38
+
39
+ ## Install
40
+
41
+ You can install it from npm:
42
+
43
+ ```
44
+ npm install --save isomorphic-git
45
+ ```
46
+
47
+ ## Getting Started
48
+
49
+ The "isomorphic" in `isomorphic-git` means that the same code runs in either the server or the browser.
50
+ That's tricky to do since git uses the file system and makes HTTP requests. Browsers don't have an `fs` module.
51
+ And node and browsers have different APIs for making HTTP requests!
52
+
53
+ So rather than relying on the `fs` and `http` modules, `isomorphic-git` lets you bring your own file system
54
+ and HTTP client.
55
+
56
+ If you're using `isomorphic-git` in node, you use the native `fs` module and the provided node HTTP client.
57
+
58
+ ```js
59
+ // node.js example
60
+ const path = require('path')
61
+ const git = require('isomorphic-git')
62
+ const http = require('isomorphic-git/http/node')
63
+ const fs = require('fs')
64
+
65
+ const dir = path.join(process.cwd(), 'test-clone')
66
+ git.clone({ fs, http, dir, url: 'https://github.com/isomorphic-git/lightning-fs' }).then(console.log)
67
+ ```
68
+
69
+ If you're using `isomorphic-git` in the browser, you'll need something that emulates the `fs` API.
70
+ The easiest to setup and most performant library is [LightningFS](https://github.com/isomorphic-git/lightning-fs) which is written and maintained by the same author and is part of the `isomorphic-git` suite.
71
+ If LightningFS doesn't meet your requirements, isomorphic-git should also work with [BrowserFS](https://github.com/jvilk/BrowserFS) and [Filer](https://github.com/filerjs/filer).
72
+ Instead of `isomorphic-git/http/node` this time import `isomorphic-git/http/web`:
73
+
74
+ ```html
75
+ <script src="https://unpkg.com/@isomorphic-git/lightning-fs"></script>
76
+ <script src="https://unpkg.com/isomorphic-git"></script>
77
+ <script type="module">
78
+ import http from 'https://unpkg.com/isomorphic-git@beta/http/web/index.js'
79
+ const fs = new LightningFS('fs')
80
+
81
+ const dir = '/test-clone'
82
+ git.clone({ fs, http, dir, url: 'https://github.com/isomorphic-git/lightning-fs', corsProxy: 'https://cors.isomorphic-git.org' }).then(console.log)
83
+ </script>
84
+ ```
85
+
86
+ If you're using ES module syntax, you can use either the default import for convenience, or named imports to benefit from tree-shaking if you are using a bundler:
87
+
88
+ ```js
89
+ import git from 'isomorphic-git'
90
+ // or
91
+ import * as git from 'isomorphic-git'
92
+ // or
93
+ import {plugins, clone, commit, push} from 'isomorphic-git'
94
+ ```
95
+
96
+ View the full [Getting Started guide](https://isomorphic-git.github.io/docs/quickstart.html) on the docs website.
97
+
98
+ Then check out the [Useful Snippets](https://isomorphic-git.org/docs/en/snippets) page, which includes even more sample code written by the community!
99
+
100
+ ### CORS support
101
+
102
+ Unfortunately, due to the same-origin policy by default `isomorphic-git` can only clone from the same origin as the webpage it is running on. This is terribly inconvenient, as it means for all practical purposes cloning and pushing repos must be done through a proxy.
103
+
104
+ For this purpose [@isomorphic-git/cors-proxy](https://github.com/isomorphic-git/cors-proxy) exists which you can clone or [`npm install`](https://www.npmjs.com/package/@isomorphic-git/cors-proxy).
105
+ For testing or small projects, you can also use [https://cors.isomorphic-git.org](https://cors.isomorphic-git.org) - a free proxy sponsored by [Clever Cloud](https://www.clever-cloud.com/?utm_source=ref&utm_medium=link&utm_campaign=isomorphic-git).
106
+
107
+ I'm hoping to get CORS headers added to all the major Git hosting platforms eventually, and will list my progress here:
108
+
109
+ | Service | Supports CORS requests |
110
+ | ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
111
+ | Gogs (self-hosted) | [βœ”](https://isomorphic-git.github.io/blog/2018/04/07/gogs-adds-cors-headers-for-isomorphic-git.html) |
112
+ | Gitea (self-hosted) | [βœ”](https://github.com/go-gitea/gitea/pull/5719) |
113
+ | Azure DevOps | [βœ”](https://github.com/isomorphic-git/isomorphic-git/issues/678#issuecomment-452402740) (Usage Note: requires authentication) |
114
+ | Gitlab | ❌ My [PR](https://gitlab.com/gitlab-org/gitlab-workhorse/merge_requests/219) was rejected, but the [issue](https://gitlab.com/gitlab-org/gitlab/issues/20590) is still open! |
115
+ | Bitbucket | ❌ |
116
+ | Github | ❌ |
117
+
118
+ It is literally just two lines of code to add the CORS headers!! Easy stuff. Surely it will happen.
119
+
120
+ ### `isogit` CLI
121
+
122
+ Isomorphic-git comes with a simple CLI tool, named `isogit` because `isomorphic-git` is a lot to type. It is really just a thin shell that translates command line arguments into the equivalent JS API commands. So you should be able to run *any* current or future isomorphic-git commands using the CLI.
123
+
124
+ It always starts with an the assumption that the current working directory is a git root.
125
+ E.g. `{ dir: '.' }`.
126
+
127
+ It uses `minimisted` to parse command line options and will print out the equivalent JS command and pretty-print the output JSON.
128
+
129
+ The CLI is more of a lark for quickly testing `isomorphic-git` and isn't really meant as a `git` CLI replacement.
130
+
131
+ ## Supported Git commands
132
+
133
+ This project follows semantic versioning, so I may continue to make changes to the API but they will always be backwards compatible
134
+ unless there is a major version bump.
135
+
136
+ ### commands
137
+
138
+ <!-- API-LIST:START - Do not remove or modify this section -->
139
+ <!-- prettier-ignore-start -->
140
+ <!-- markdownlint-disable -->
141
+
142
+ <!-- autogenerated_by: __tests__/__helpers__/generate-docs.js -->
143
+
144
+ - [add](https://isomorphic-git.github.io/docs/add.html)
145
+ - [addNote](https://isomorphic-git.github.io/docs/addNote.html)
146
+ - [addRemote](https://isomorphic-git.github.io/docs/addRemote.html)
147
+ - [annotatedTag](https://isomorphic-git.github.io/docs/annotatedTag.html)
148
+ - [branch](https://isomorphic-git.github.io/docs/branch.html)
149
+ - [checkout](https://isomorphic-git.github.io/docs/checkout.html)
150
+ - [clone](https://isomorphic-git.github.io/docs/clone.html)
151
+ - [commit](https://isomorphic-git.github.io/docs/commit.html)
152
+ - [currentBranch](https://isomorphic-git.github.io/docs/currentBranch.html)
153
+ - [deleteBranch](https://isomorphic-git.github.io/docs/deleteBranch.html)
154
+ - [deleteRef](https://isomorphic-git.github.io/docs/deleteRef.html)
155
+ - [deleteRemote](https://isomorphic-git.github.io/docs/deleteRemote.html)
156
+ - [deleteTag](https://isomorphic-git.github.io/docs/deleteTag.html)
157
+ - [expandOid](https://isomorphic-git.github.io/docs/expandOid.html)
158
+ - [expandRef](https://isomorphic-git.github.io/docs/expandRef.html)
159
+ - [fastForward](https://isomorphic-git.github.io/docs/fastForward.html)
160
+ - [fetch](https://isomorphic-git.github.io/docs/fetch.html)
161
+ - [findMergeBase](https://isomorphic-git.github.io/docs/findMergeBase.html)
162
+ - [findRoot](https://isomorphic-git.github.io/docs/findRoot.html)
163
+ - [getConfig](https://isomorphic-git.github.io/docs/getConfig.html)
164
+ - [getConfigAll](https://isomorphic-git.github.io/docs/getConfigAll.html)
165
+ - [getRemoteInfo](https://isomorphic-git.github.io/docs/getRemoteInfo.html)
166
+ - [getRemoteInfo2](https://isomorphic-git.github.io/docs/getRemoteInfo2.html)
167
+ - [hashBlob](https://isomorphic-git.github.io/docs/hashBlob.html)
168
+ - [indexPack](https://isomorphic-git.github.io/docs/indexPack.html)
169
+ - [init](https://isomorphic-git.github.io/docs/init.html)
170
+ - [isDescendent](https://isomorphic-git.github.io/docs/isDescendent.html)
171
+ - [isIgnored](https://isomorphic-git.github.io/docs/isIgnored.html)
172
+ - [listBranches](https://isomorphic-git.github.io/docs/listBranches.html)
173
+ - [listFiles](https://isomorphic-git.github.io/docs/listFiles.html)
174
+ - [listNotes](https://isomorphic-git.github.io/docs/listNotes.html)
175
+ - [listRemotes](https://isomorphic-git.github.io/docs/listRemotes.html)
176
+ - [listServerRefs](https://isomorphic-git.github.io/docs/listServerRefs.html)
177
+ - [listTags](https://isomorphic-git.github.io/docs/listTags.html)
178
+ - [log](https://isomorphic-git.github.io/docs/log.html)
179
+ - [merge](https://isomorphic-git.github.io/docs/merge.html)
180
+ - [packObjects](https://isomorphic-git.github.io/docs/packObjects.html)
181
+ - [pull](https://isomorphic-git.github.io/docs/pull.html)
182
+ - [push](https://isomorphic-git.github.io/docs/push.html)
183
+ - [readBlob](https://isomorphic-git.github.io/docs/readBlob.html)
184
+ - [readCommit](https://isomorphic-git.github.io/docs/readCommit.html)
185
+ - [readNote](https://isomorphic-git.github.io/docs/readNote.html)
186
+ - [readObject](https://isomorphic-git.github.io/docs/readObject.html)
187
+ - [readTag](https://isomorphic-git.github.io/docs/readTag.html)
188
+ - [readTree](https://isomorphic-git.github.io/docs/readTree.html)
189
+ - [remove](https://isomorphic-git.github.io/docs/remove.html)
190
+ - [removeNote](https://isomorphic-git.github.io/docs/removeNote.html)
191
+ - [renameBranch](https://isomorphic-git.github.io/docs/renameBranch.html)
192
+ - [resetIndex](https://isomorphic-git.github.io/docs/resetIndex.html)
193
+ - [resolveRef](https://isomorphic-git.github.io/docs/resolveRef.html)
194
+ - [setConfig](https://isomorphic-git.github.io/docs/setConfig.html)
195
+ - [status](https://isomorphic-git.github.io/docs/status.html)
196
+ - [statusMatrix](https://isomorphic-git.github.io/docs/statusMatrix.html)
197
+ - [tag](https://isomorphic-git.github.io/docs/tag.html)
198
+ - [version](https://isomorphic-git.github.io/docs/version.html)
199
+ - [walk](https://isomorphic-git.github.io/docs/walk.html)
200
+ - [writeBlob](https://isomorphic-git.github.io/docs/writeBlob.html)
201
+ - [writeCommit](https://isomorphic-git.github.io/docs/writeCommit.html)
202
+ - [writeObject](https://isomorphic-git.github.io/docs/writeObject.html)
203
+ - [writeRef](https://isomorphic-git.github.io/docs/writeRef.html)
204
+ - [writeTag](https://isomorphic-git.github.io/docs/writeTag.html)
205
+ - [writeTree](https://isomorphic-git.github.io/docs/writeTree.html)
206
+
207
+ <!-- markdownlint-enable -->
208
+ <!-- prettier-ignore-end -->
209
+ <!-- API-LIST:END -->
210
+
211
+ ## Community
212
+
213
+ Share your questions and ideas with us! We love that.
214
+ You can find us in our [Gitter chatroom](https://gitter.im/isomorphic-git/Lobby) or just create an issue here on Github!
215
+ We are also [@IsomorphicGit](https://twitter.com/IsomorphicGit) on Twitter.
216
+
217
+ ## Contributing to `isomorphic-git`
218
+
219
+ The development setup is similar to that of a large web application.
220
+ The main difference is the ridiculous amount of hacks involved in the tests.
221
+ We use Facebook's [Jest](https://jestjs.io) for testing, which make doing TDD fast and fun,
222
+ but we also used custom hacks so that the same
223
+ tests will also run in the browser using [Jasmine](https://jasmine.github.io/) via [Karma](https://karma-runner.github.io).
224
+ We even have our own [mock server](https://github.com/isomorphic-git/git-http-mock-server) for serving
225
+ git repository test fixtures!
226
+
227
+ You'll need [node.js](https://nodejs.org) installed, but everything else is a devDependency.
228
+
229
+ ```sh
230
+ git clone https://github.com/isomorphic-git/isomorphic-git
231
+ cd isomorphic-git
232
+ npm install
233
+ npm test
234
+ ```
235
+
236
+ Check out the [`CONTRIBUTING`](./CONTRIBUTING.md) document for more instructions.
237
+
238
+ ## Who is using isomorphic-git?
239
+
240
+ - [nde](https://nde.now.sh) - a futuristic next-generation web IDE
241
+ - [git-app-manager](https://git-app-manager.now.sh/) - install "unhosted" websites locally by git cloning them
242
+ - [GIT Web Terminal](https://jcubic.github.io/git/)
243
+ - [Next Editor](https://next-editor.app/)
244
+ - [Clever Cloud](https://www.clever-cloud.com/?utm_source=ref&utm_medium=link&utm_campaign=isomorphic-git)
245
+ - [Stoplight Studio](https://stoplight.io/studio/?utm_source=ref&utm_medium=link&utm_campaign=isomorphic-git) - a modern editor for API design and technical writing
246
+
247
+ ## Similar projects
248
+
249
+ - [js-git](https://github.com/creationix/js-git)
250
+ - [es-git](https://github.com/es-git/es-git)
251
+
252
+ ## Acknowledgments
253
+
254
+ Isomorphic-git would not have been possible without the pioneering work by
255
+ @creationix and @chrisdickinson. Git is a tricky binary mess, and without
256
+ their examples (and their modules!) I would not have been able to come even
257
+ close to finishing this. They are geniuses ahead of their time.
258
+
259
+ Cross-browser device testing is provided by:
260
+
261
+ [![BrowserStack](https://user-images.githubusercontent.com/587740/39730261-9c65c4d8-522e-11e8-9f12-16b349377a35.png)](http://browserstack.com/)
262
+
263
+ [![SauceLabs](https://saucelabs.com/content/images/logo.png)](https://saucelabs.com)
264
+
265
+ ## Contributors
266
+
267
+ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):
268
+
269
+ <!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
270
+ <!-- prettier-ignore-start -->
271
+ <!-- markdownlint-disable -->
272
+ <table>
273
+ <tr>
274
+ <td align="center"><a href="https://onename.com/wmhilton"><img src="https://avatars2.githubusercontent.com/u/587740?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>William Hilton</b></sub></a><br /><a href="#blog-wmhilton" title="Blogposts">πŸ“</a> <a href="https://github.com/isomorphic-git/isomorphic-git/issues?q=author%3Awmhilton" title="Bug reports">πŸ›</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=wmhilton" title="Code">πŸ’»</a> <a href="#design-wmhilton" title="Design">🎨</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=wmhilton" title="Documentation">πŸ“–</a> <a href="#example-wmhilton" title="Examples">πŸ’‘</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=wmhilton" title="Tests">⚠️</a> <a href="#tutorial-wmhilton" title="Tutorials">βœ…</a></td>
275
+ <td align="center"><a href="https://github.com/wDhTIG"><img src="https://avatars2.githubusercontent.com/u/33748231?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>wDhTIG</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/issues?q=author%3AwDhTIG" title="Bug reports">πŸ›</a></td>
276
+ <td align="center"><a href="https://github.com/marbemac"><img src="https://avatars3.githubusercontent.com/u/847542?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>Marc MacLeod</b></sub></a><br /><a href="#ideas-marbemac" title="Ideas, Planning, & Feedback">πŸ€”</a> <a href="#fundingFinding-marbemac" title="Funding Finding">πŸ”</a></td>
277
+ <td align="center"><a href="http://brett-zamir.me"><img src="https://avatars3.githubusercontent.com/u/20234?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>Brett Zamir</b></sub></a><br /><a href="#ideas-brettz9" title="Ideas, Planning, & Feedback">πŸ€”</a></td>
278
+ <td align="center"><a href="http://mojavelinux.com"><img src="https://avatars2.githubusercontent.com/u/79351?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>Dan Allen</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/issues?q=author%3Amojavelinux" title="Bug reports">πŸ›</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=mojavelinux" title="Code">πŸ’»</a> <a href="#ideas-mojavelinux" title="Ideas, Planning, & Feedback">πŸ€”</a></td>
279
+ <td align="center"><a href="https://TomasHubelbauer.net"><img src="https://avatars1.githubusercontent.com/u/6831144?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>TomΓ‘Ε‘ HΓΌbelbauer</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/issues?q=author%3ATomasHubelbauer" title="Bug reports">πŸ›</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=TomasHubelbauer" title="Code">πŸ’»</a></td>
280
+ <td align="center"><a href="https://github.com/juancampa"><img src="https://avatars2.githubusercontent.com/u/1410520?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>Juan Campa</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/issues?q=author%3Ajuancampa" title="Bug reports">πŸ›</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=juancampa" title="Code">πŸ’»</a></td>
281
+ </tr>
282
+ <tr>
283
+ <td align="center"><a href="http://iramiller.com"><img src="https://avatars2.githubusercontent.com/u/1041868?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>Ira Miller</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/issues?q=author%3Aisysd" title="Bug reports">πŸ›</a></td>
284
+ <td align="center"><a href="http://rhys.arkins.net"><img src="https://avatars1.githubusercontent.com/u/6311784?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>Rhys Arkins</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=rarkins" title="Code">πŸ’»</a></td>
285
+ <td align="center"><a href="http://twitter.com/TheLarkInn"><img src="https://avatars1.githubusercontent.com/u/3408176?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>Sean Larkin</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=TheLarkInn" title="Code">πŸ’»</a></td>
286
+ <td align="center"><a href="https://daniel-ruf.de"><img src="https://avatars1.githubusercontent.com/u/827205?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>Daniel Ruf</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=DanielRuf" title="Code">πŸ’»</a></td>
287
+ <td align="center"><a href="http://blog.bokuweb.me/"><img src="https://avatars0.githubusercontent.com/u/10220449?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>bokuweb</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=bokuweb" title="Code">πŸ’»</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=bokuweb" title="Documentation">πŸ“–</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=bokuweb" title="Tests">⚠️</a></td>
288
+ <td align="center"><a href="https://github.com/hirokiosame"><img src="https://avatars0.githubusercontent.com/u/1075694?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>Hiroki Osame</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=hirokiosame" title="Code">πŸ’»</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=hirokiosame" title="Documentation">πŸ“–</a></td>
289
+ <td align="center"><a href="http://jcubic.pl/me"><img src="https://avatars1.githubusercontent.com/u/280241?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>Jakub Jankiewicz</b></sub></a><br /><a href="#question-jcubic" title="Answering Questions">πŸ’¬</a> <a href="https://github.com/isomorphic-git/isomorphic-git/issues?q=author%3Ajcubic" title="Bug reports">πŸ›</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=jcubic" title="Code">πŸ’»</a> <a href="#example-jcubic" title="Examples">πŸ’‘</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=jcubic" title="Tests">⚠️</a></td>
290
+ </tr>
291
+ <tr>
292
+ <td align="center"><a href="https://github.com/howardgod"><img src="https://avatars1.githubusercontent.com/u/10459637?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>howardgod</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/issues?q=author%3Ahowardgod" title="Bug reports">πŸ›</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=howardgod" title="Code">πŸ’»</a></td>
293
+ <td align="center"><a href="https://twitter.com/btyga"><img src="https://avatars3.githubusercontent.com/u/263378?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>burningTyger</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/issues?q=author%3AburningTyger" title="Bug reports">πŸ›</a></td>
294
+ <td align="center"><a href="https://melvincarvalho.com/#me"><img src="https://avatars2.githubusercontent.com/u/65864?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>Melvin Carvalho</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=melvincarvalho" title="Documentation">πŸ“–</a></td>
295
+ <td align="center"><img src="https://avatars2.githubusercontent.com/u/3035266?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>akaJes</b></sub><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=akaJes" title="Code">πŸ’»</a></td>
296
+ <td align="center"><a href="http://twitter.com/dimasabanin"><img src="https://avatars2.githubusercontent.com/u/8316?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>Dima Sabanin</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/issues?q=author%3Adsabanin" title="Bug reports">πŸ›</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=dsabanin" title="Code">πŸ’»</a></td>
297
+ <td align="center"><a href="http://twitter.com/mizchi"><img src="https://avatars2.githubusercontent.com/u/73962?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>Koutaro Chikuba</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/issues?q=author%3Amizchi" title="Bug reports">πŸ›</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=mizchi" title="Code">πŸ’»</a></td>
298
+ <td align="center"><a href="https://www.hsablonniere.com/"><img src="https://avatars2.githubusercontent.com/u/236342?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>Hubert SABLONNIÈRE</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=hsablonniere" title="Code">πŸ’»</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=hsablonniere" title="Tests">⚠️</a> <a href="#ideas-hsablonniere" title="Ideas, Planning, & Feedback">πŸ€”</a> <a href="#fundingFinding-hsablonniere" title="Funding Finding">πŸ”</a></td>
299
+ </tr>
300
+ <tr>
301
+ <td align="center"><a href="https://github.com/DeltaEvo"><img src="https://avatars1.githubusercontent.com/u/8864716?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>David Duarte</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=DeltaEvo" title="Code">πŸ’»</a></td>
302
+ <td align="center"><a href="http://stoplight.io/"><img src="https://avatars2.githubusercontent.com/u/2294309?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>Thomas Pytleski</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/issues?q=author%3Apytlesk4" title="Bug reports">πŸ›</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=pytlesk4" title="Code">πŸ’»</a></td>
303
+ <td align="center"><a href="http://linkedin.com/in/vmarkovtsev"><img src="https://avatars3.githubusercontent.com/u/2793551?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>Vadim Markovtsev</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/issues?q=author%3Avmarkovtsev" title="Bug reports">πŸ›</a></td>
304
+ <td align="center"><a href="https://yuhr.org"><img src="https://avatars0.githubusercontent.com/u/18474125?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>Yu Shimura</b></sub></a><br /><a href="#ideas-yuhr" title="Ideas, Planning, & Feedback">πŸ€”</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=yuhr" title="Code">πŸ’»</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=yuhr" title="Tests">⚠️</a></td>
305
+ <td align="center"><a href="https://github.com/pyramation"><img src="https://avatars1.githubusercontent.com/u/545047?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>Dan Lynch</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=pyramation" title="Code">πŸ’»</a></td>
306
+ <td align="center"><a href="https://www.jeffreywescott.com/"><img src="https://avatars3.githubusercontent.com/u/130597?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>Jeffrey Wescott</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/issues?q=author%3Ajeffreywescott" title="Bug reports">πŸ›</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=jeffreywescott" title="Code">πŸ’»</a></td>
307
+ <td align="center"><a href="https://github.com/zebzhao"><img src="https://avatars2.githubusercontent.com/u/5515758?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>zebzhao</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=zebzhao" title="Code">πŸ’»</a></td>
308
+ </tr>
309
+ <tr>
310
+ <td align="center"><a href="https://github.com/tilersmyth"><img src="https://avatars2.githubusercontent.com/u/8736328?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>Tyler Smith</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/issues?q=author%3Atilersmyth" title="Bug reports">πŸ›</a></td>
311
+ <td align="center"><a href="https://github.com/beeman"><img src="https://avatars3.githubusercontent.com/u/36491?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>Bram Borggreve</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/issues?q=author%3Abeeman" title="Bug reports">πŸ›</a></td>
312
+ <td align="center"><a href="https://github.com/stefan-guggisberg"><img src="https://avatars1.githubusercontent.com/u/1543625?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>Stefan Guggisberg</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/issues?q=author%3Astefan-guggisberg" title="Bug reports">πŸ›</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=stefan-guggisberg" title="Code">πŸ’»</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=stefan-guggisberg" title="Tests">⚠️</a></td>
313
+ <td align="center"><a href="https://github.com/katakonst"><img src="https://avatars2.githubusercontent.com/u/6519792?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>Catalin Pirvu</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=katakonst" title="Code">πŸ’»</a></td>
314
+ <td align="center"><a href="http://web.engr.oregonstate.edu/~nelsonni/"><img src="https://avatars1.githubusercontent.com/u/6432572?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>Nicholas Nelson</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=nelsonni" title="Code">πŸ’»</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=nelsonni" title="Tests">⚠️</a></td>
315
+ <td align="center"><a href="https://twitter.com/addaleax"><img src="https://avatars2.githubusercontent.com/u/899444?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>Anna Henningsen</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=addaleax" title="Code">πŸ’»</a></td>
316
+ <td align="center"><a href="https://hen.ne.ke"><img src="https://avatars0.githubusercontent.com/u/4312191?v=4&s=60?s=60" width="60px;" alt=""/><br /><sub><b>Fabian Henneke</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/issues?q=author%3AFabianHenneke" title="Bug reports">πŸ›</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=FabianHenneke" title="Code">πŸ’»</a></td>
317
+ </tr>
318
+ <tr>
319
+ <td align="center"><a href="https://github.com/djencks"><img src="https://avatars2.githubusercontent.com/u/569822?v=4?s=60" width="60px;" alt=""/><br /><sub><b>djencks</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/issues?q=author%3Adjencks" title="Bug reports">πŸ›</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=djencks" title="Code">πŸ’»</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=djencks" title="Tests">⚠️</a></td>
320
+ <td align="center"><a href="https://justamouse.com"><img src="https://avatars0.githubusercontent.com/u/1086421?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Clemens Wolff</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=c-w" title="Code">πŸ’»</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=c-w" title="Documentation">πŸ“–</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=c-w" title="Tests">⚠️</a></td>
321
+ <td align="center"><a href="https://sojin.io"><img src="https://avatars1.githubusercontent.com/u/3102175?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Sojin Park</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=raon0211" title="Code">πŸ’»</a></td>
322
+ <td align="center"><a href="http://eaf4.com"><img src="https://avatars0.githubusercontent.com/u/319282?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Edward Faulkner</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=ef4" title="Code">πŸ’»</a></td>
323
+ <td align="center"><a href="https://github.com/KSXGitHub"><img src="https://avatars2.githubusercontent.com/u/11488886?v=4?s=60" width="60px;" alt=""/><br /><sub><b>KhαΊ£i</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/issues?q=author%3AKSXGitHub" title="Bug reports">πŸ›</a></td>
324
+ <td align="center"><a href="https://crutchcorn.dev/"><img src="https://avatars0.githubusercontent.com/u/9100169?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Corbin Crutchley</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=crutchcorn" title="Code">πŸ’»</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=crutchcorn" title="Documentation">πŸ“–</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=crutchcorn" title="Tests">⚠️</a></td>
325
+ <td align="center"><a href="https://github.com/snowyu"><img src="https://avatars1.githubusercontent.com/u/327887?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Riceball LEE</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=snowyu" title="Code">πŸ’»</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=snowyu" title="Documentation">πŸ“–</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=snowyu" title="Tests">⚠️</a></td>
326
+ </tr>
327
+ <tr>
328
+ <td align="center"><a href="https://onetwo.ren/"><img src="https://avatars1.githubusercontent.com/u/3746270?v=4?s=60" width="60px;" alt=""/><br /><sub><b>lin onetwo</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=linonetwo" title="Code">πŸ’»</a></td>
329
+ <td align="center"><a href="https://github.com/linfaxin"><img src="https://avatars2.githubusercontent.com/u/3705017?v=4?s=60" width="60px;" alt=""/><br /><sub><b>ζž—ζ³•ι‘«</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/issues?q=author%3Alinfaxin" title="Bug reports">πŸ›</a></td>
330
+ <td align="center"><a href="https://github.com/willstott101"><img src="https://avatars2.githubusercontent.com/u/335152?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Will Stott</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=willstott101" title="Code">πŸ’»</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=willstott101" title="Tests">⚠️</a></td>
331
+ <td align="center"><a href="http://mtnspring.org/"><img src="https://avatars2.githubusercontent.com/u/223277?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Seth Nickell</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/issues?q=author%3Asnickell" title="Bug reports">πŸ›</a></td>
332
+ <td align="center"><a href="https://www.alextitarenko.me/"><img src="https://avatars0.githubusercontent.com/u/3290313?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Alex Titarenko</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=alex-titarenko" title="Code">πŸ’»</a></td>
333
+ <td align="center"><a href="https://github.com/mmkal"><img src="https://avatars2.githubusercontent.com/u/15040698?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Misha Kaletsky</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=mmkal" title="Code">πŸ’»</a></td>
334
+ <td align="center"><a href="https://github.com/rczulch"><img src="https://avatars1.githubusercontent.com/u/54646976?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Richard C. Zulch</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=rczulch" title="Code">πŸ’»</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=rczulch" title="Documentation">πŸ“–</a></td>
335
+ </tr>
336
+ <tr>
337
+ <td align="center"><a href="https://scrapbox.io/mkizka/README"><img src="https://avatars.githubusercontent.com/u/30231179?v=4?s=60" width="60px;" alt=""/><br /><sub><b>mkizka</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=mkizka" title="Code">πŸ’»</a></td>
338
+ <td align="center"><a href="https://ryotak.me/"><img src="https://avatars.githubusercontent.com/u/49341894?v=4?s=60" width="60px;" alt=""/><br /><sub><b>RyotaK</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/issues?q=author%3ARy0taK" title="Bug reports">πŸ›</a></td>
339
+ <td align="center"><a href="https://github.com/strangedev"><img src="https://avatars.githubusercontent.com/u/3045979?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Noah Hummel</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=strangedev" title="Code">πŸ’»</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=strangedev" title="Tests">⚠️</a></td>
340
+ <td align="center"><a href="https://github.com/mtlewis"><img src="https://avatars.githubusercontent.com/u/542836?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Mike Lewis</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=mtlewis" title="Documentation">πŸ“–</a></td>
341
+ </tr>
342
+ </table>
343
+
344
+ <!-- markdownlint-restore -->
345
+ <!-- prettier-ignore-end -->
346
+
347
+ <!-- ALL-CONTRIBUTORS-LIST:END -->
348
+
349
+ This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!
350
+
351
+ <!--
352
+ ### Contributors
353
+
354
+ This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].
355
+ <a href="graphs/contributors"><img src="https://opencollective.com/isomorphic-git/contributors.svg?width=890&button=false" /></a>
356
+ -->
357
+
358
+ ### Backers
359
+
360
+ Thank you to all our backers! πŸ™ [[Become a backer](https://opencollective.com/isomorphic-git#backer)]
361
+
362
+ <a href="https://opencollective.com/isomorphic-git#backers" target="_blank"><img src="https://opencollective.com/isomorphic-git/backers.svg?width=890"></a>
363
+
364
+
365
+ ### Sponsors
366
+
367
+ Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/isomorphic-git#sponsor)]
368
+
369
+ <a href="https://opencollective.com/isomorphic-git/sponsor/0/website" target="_blank"><img src="https://opencollective.com/isomorphic-git/sponsor/0/avatar.svg"></a>
370
+ <a href="https://opencollective.com/isomorphic-git/sponsor/1/website" target="_blank"><img src="https://opencollective.com/isomorphic-git/sponsor/1/avatar.svg"></a>
371
+ <a href="https://opencollective.com/isomorphic-git/sponsor/2/website" target="_blank"><img src="https://opencollective.com/isomorphic-git/sponsor/2/avatar.svg"></a>
372
+ <a href="https://opencollective.com/isomorphic-git/sponsor/3/website" target="_blank"><img src="https://opencollective.com/isomorphic-git/sponsor/3/avatar.svg"></a>
373
+ <a href="https://opencollective.com/isomorphic-git/sponsor/4/website" target="_blank"><img src="https://opencollective.com/isomorphic-git/sponsor/4/avatar.svg"></a>
374
+ <a href="https://opencollective.com/isomorphic-git/sponsor/5/website" target="_blank"><img src="https://opencollective.com/isomorphic-git/sponsor/5/avatar.svg"></a>
375
+ <a href="https://opencollective.com/isomorphic-git/sponsor/6/website" target="_blank"><img src="https://opencollective.com/isomorphic-git/sponsor/6/avatar.svg"></a>
376
+ <a href="https://opencollective.com/isomorphic-git/sponsor/7/website" target="_blank"><img src="https://opencollective.com/isomorphic-git/sponsor/7/avatar.svg"></a>
377
+ <a href="https://opencollective.com/isomorphic-git/sponsor/8/website" target="_blank"><img src="https://opencollective.com/isomorphic-git/sponsor/8/avatar.svg"></a>
378
+ <a href="https://opencollective.com/isomorphic-git/sponsor/9/website" target="_blank"><img src="https://opencollective.com/isomorphic-git/sponsor/9/avatar.svg"></a>
379
+
380
+ ## License
381
+
382
+ This work is released under [The MIT License](https://opensource.org/licenses/MIT)
383
+
384
+ [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fisomorphic-git%2Fisomorphic-git.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fisomorphic-git%2Fisomorphic-git?ref=badge_large)
@@ -0,0 +1,8 @@
1
+ [
2
+ "HeadlessChrome 0.0.0 (Linux 0.0.0)",
3
+ "Firefox 92.0.0 (Ubuntu 0.0.0)",
4
+ "Chrome 79.0.3945 (Windows 10 0.0.0)",
5
+ "Chrome Mobile 91.0.4472 (Android 0.0.0)",
6
+ "Safari 13.1.0 (Mac OS X 10.15.4)",
7
+ "Mobile Safari 13.0.0 (iOS 13.0.0)"
8
+ ]
package/cli.cjs ADDED
@@ -0,0 +1,41 @@
1
+ #!/usr/bin/env node
2
+ const fs = require('fs')
3
+
4
+ const minimisted = require('minimisted')
5
+
6
+ const git = require('.')
7
+
8
+ const http = require('./http/node')
9
+
10
+ // This really isn't much of a CLI. It's mostly for testing.
11
+ // But it's very versatile and works surprisingly well.
12
+
13
+ minimisted(async function({ _: [command, ...args], ...opts }) {
14
+ try {
15
+ const result = await git[command](
16
+ Object.assign(
17
+ {
18
+ fs,
19
+ http,
20
+ dir: '.',
21
+ onAuth: () => ({ username: opts.username, password: opts.password }),
22
+ headers: {
23
+ 'User-Agent': `git/isogit-${git.version()}`,
24
+ },
25
+ },
26
+ opts
27
+ )
28
+ )
29
+ if (result === undefined) return
30
+ // detect streams
31
+ if (typeof result.on === 'function') {
32
+ result.pipe(process.stdout)
33
+ } else {
34
+ console.log(JSON.stringify(result, null, 2))
35
+ }
36
+ } catch (err) {
37
+ process.stderr.write(err.message + '\n')
38
+ console.log(err)
39
+ process.exit(1)
40
+ }
41
+ })