Skip to content

Commit e0e9faf

Browse files
jcubicisomorphic-git-bot
authored andcommitted
chore: update README (#2267)
1 parent 9b98269 commit e0e9faf

File tree

9 files changed

+22
-12
lines changed

9 files changed

+22
-12
lines changed

js/isomorphic-git/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,8 @@ npm install
248248
npm test
249249
```
250250

251+
The new relase happen automatically after every PR merge. We use [sematic release](https://github.com/semantic-release/semantic-release).
252+
251253
Check out the [`CONTRIBUTING`](./CONTRIBUTING.md) document for more instructions.
252254

253255
## Who is using isomorphic-git?

js/isomorphic-git/index.cjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4829,8 +4829,8 @@ function isPromiseFs(fs) {
48294829

48304830
// List of commands all filesystems are expected to provide. `rm` is not
48314831
// included since it may not exist and must be handled as a special case
4832+
// Likewise with `cp`.
48324833
const commands = [
4833-
'cp',
48344834
'readFile',
48354835
'writeFile',
48364836
'mkdir',
@@ -4854,12 +4854,14 @@ function bindFs(target, fs) {
48544854
}
48554855
}
48564856

4857-
// Handle the special case of `rm`
4857+
// Handle the special cases of `rm` and `cp`
48584858
if (isPromiseFs(fs)) {
4859+
if (fs.cp) target._cp = fs.cp.bind(fs);
48594860
if (fs.rm) target._rm = fs.rm.bind(fs);
48604861
else if (fs.rmdir.length > 1) target._rm = fs.rmdir.bind(fs);
48614862
else target._rm = rmRecursive.bind(null, target);
48624863
} else {
4864+
if (fs.cp) target._cp = pify(fs.cp.bind(fs));
48634865
if (fs.rm) target._rm = pify(fs.rm.bind(fs));
48644866
else if (fs.rmdir.length > 2) target._rm = pify(fs.rmdir.bind(fs));
48654867
else target._rm = rmRecursive.bind(null, target);

js/isomorphic-git/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4823,8 +4823,8 @@ function isPromiseFs(fs) {
48234823

48244824
// List of commands all filesystems are expected to provide. `rm` is not
48254825
// included since it may not exist and must be handled as a special case
4826+
// Likewise with `cp`.
48264827
const commands = [
4827-
'cp',
48284828
'readFile',
48294829
'writeFile',
48304830
'mkdir',
@@ -4848,12 +4848,14 @@ function bindFs(target, fs) {
48484848
}
48494849
}
48504850

4851-
// Handle the special case of `rm`
4851+
// Handle the special cases of `rm` and `cp`
48524852
if (isPromiseFs(fs)) {
4853+
if (fs.cp) target._cp = fs.cp.bind(fs);
48534854
if (fs.rm) target._rm = fs.rm.bind(fs);
48544855
else if (fs.rmdir.length > 1) target._rm = fs.rmdir.bind(fs);
48554856
else target._rm = rmRecursive.bind(null, target);
48564857
} else {
4858+
if (fs.cp) target._cp = pify(fs.cp.bind(fs));
48574859
if (fs.rm) target._rm = pify(fs.rm.bind(fs));
48584860
else if (fs.rmdir.length > 2) target._rm = pify(fs.rmdir.bind(fs));
48594861
else target._rm = rmRecursive.bind(null, target);

js/isomorphic-git/index.umd.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/isomorphic-git/index.umd.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/isomorphic-git/models/index.cjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ function isPromiseFs(fs) {
170170

171171
// List of commands all filesystems are expected to provide. `rm` is not
172172
// included since it may not exist and must be handled as a special case
173+
// Likewise with `cp`.
173174
const commands = [
174-
'cp',
175175
'readFile',
176176
'writeFile',
177177
'mkdir',
@@ -195,12 +195,14 @@ function bindFs(target, fs) {
195195
}
196196
}
197197

198-
// Handle the special case of `rm`
198+
// Handle the special cases of `rm` and `cp`
199199
if (isPromiseFs(fs)) {
200+
if (fs.cp) target._cp = fs.cp.bind(fs);
200201
if (fs.rm) target._rm = fs.rm.bind(fs);
201202
else if (fs.rmdir.length > 1) target._rm = fs.rmdir.bind(fs);
202203
else target._rm = rmRecursive.bind(null, target);
203204
} else {
205+
if (fs.cp) target._cp = pify(fs.cp.bind(fs));
204206
if (fs.rm) target._rm = pify(fs.rm.bind(fs));
205207
else if (fs.rmdir.length > 2) target._rm = pify(fs.rmdir.bind(fs));
206208
else target._rm = rmRecursive.bind(null, target);

js/isomorphic-git/models/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ function isPromiseFs(fs) {
164164

165165
// List of commands all filesystems are expected to provide. `rm` is not
166166
// included since it may not exist and must be handled as a special case
167+
// Likewise with `cp`.
167168
const commands = [
168-
'cp',
169169
'readFile',
170170
'writeFile',
171171
'mkdir',
@@ -189,12 +189,14 @@ function bindFs(target, fs) {
189189
}
190190
}
191191

192-
// Handle the special case of `rm`
192+
// Handle the special cases of `rm` and `cp`
193193
if (isPromiseFs(fs)) {
194+
if (fs.cp) target._cp = fs.cp.bind(fs);
194195
if (fs.rm) target._rm = fs.rm.bind(fs);
195196
else if (fs.rmdir.length > 1) target._rm = fs.rmdir.bind(fs);
196197
else target._rm = rmRecursive.bind(null, target);
197198
} else {
199+
if (fs.cp) target._cp = pify(fs.cp.bind(fs));
198200
if (fs.rm) target._rm = pify(fs.rm.bind(fs));
199201
else if (fs.rmdir.length > 2) target._rm = pify(fs.rmdir.bind(fs));
200202
else target._rm = rmRecursive.bind(null, target);

js/isomorphic-git/models/index.umd.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/isomorphic-git/models/index.umd.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)