Skip to content

Commit c105dd9

Browse files
jcubicisomorphic-git-bot
authored andcommitted
chore: update Azure VM (#2098)
1 parent dfb69fb commit c105dd9

6 files changed

Lines changed: 44 additions & 3 deletions

File tree

js/isomorphic-git/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds
385385
</tr>
386386
<tr>
387387
<td align="center"><a href="https://github.com/lukecotter"><img src="https://avatars.githubusercontent.com/u/4013877?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Luke Cotter</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=lukecotter" title="Code">💻</a></td>
388+
<td align="center"><a href="https://github.com/kofta999"><img src="https://avatars.githubusercontent.com/u/99273340?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Mostafa Mahmoud</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=kofta999" title="Code">💻</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=kofta999" title="Tests">⚠️</a> <a href="#question-kofta999" title="Answering Questions">💬</a></td>
388389
</tr>
389390
</table>
390391

js/isomorphic-git/index.cjs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9253,6 +9253,16 @@ async function mergeTree({
92539253
}
92549254
}
92559255
case 'false-true': {
9256+
// if directory is deleted in theirs but not in ours we return our directory
9257+
if (!theirs && (await ours.type()) === 'tree') {
9258+
return {
9259+
mode: await ours.mode(),
9260+
path,
9261+
oid: await ours.oid(),
9262+
type: await ours.type(),
9263+
}
9264+
}
9265+
92569266
return theirs
92579267
? {
92589268
mode: await theirs.mode(),
@@ -9263,6 +9273,16 @@ async function mergeTree({
92639273
: undefined
92649274
}
92659275
case 'true-false': {
9276+
// if directory is deleted in ours but not in theirs we return their directory
9277+
if (!ours && (await theirs.type()) === 'tree') {
9278+
return {
9279+
mode: await theirs.mode(),
9280+
path,
9281+
oid: await theirs.oid(),
9282+
type: await theirs.type(),
9283+
}
9284+
}
9285+
92669286
return ours
92679287
? {
92689288
mode: await ours.mode(),

js/isomorphic-git/index.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9247,6 +9247,16 @@ async function mergeTree({
92479247
}
92489248
}
92499249
case 'false-true': {
9250+
// if directory is deleted in theirs but not in ours we return our directory
9251+
if (!theirs && (await ours.type()) === 'tree') {
9252+
return {
9253+
mode: await ours.mode(),
9254+
path,
9255+
oid: await ours.oid(),
9256+
type: await ours.type(),
9257+
}
9258+
}
9259+
92509260
return theirs
92519261
? {
92529262
mode: await theirs.mode(),
@@ -9257,6 +9267,16 @@ async function mergeTree({
92579267
: undefined
92589268
}
92599269
case 'true-false': {
9270+
// if directory is deleted in ours but not in theirs we return their directory
9271+
if (!ours && (await theirs.type()) === 'tree') {
9272+
return {
9273+
mode: await theirs.mode(),
9274+
path,
9275+
oid: await theirs.oid(),
9276+
type: await theirs.type(),
9277+
}
9278+
}
9279+
92609280
return ours
92619281
? {
92629282
mode: await ours.mode(),

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/size_report.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)