isomorphic-git 1.40.5 → 1.40.6
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/index.cjs +6 -6
- package/index.js +6 -6
- package/index.umd.min.js +1 -1
- package/index.umd.min.js.map +1 -1
- package/managers/index.cjs +3 -3
- package/managers/index.js +3 -3
- package/managers/index.umd.min.js +1 -1
- package/managers/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -8320,7 +8320,7 @@ async function checkAndWriteBlob(fs, gitdir, dir, filepath, oid = null) {
|
|
|
8320
8320
|
: undefined;
|
|
8321
8321
|
let retOid = objContent ? oid : undefined;
|
|
8322
8322
|
if (!objContent) {
|
|
8323
|
-
await acquireLock$1(
|
|
8323
|
+
await acquireLock$1(currentFilepath, async () => {
|
|
8324
8324
|
const object = stats.isSymbolicLink()
|
|
8325
8325
|
? await fs.readlink(currentFilepath).then(posixifyPathBuffer)
|
|
8326
8326
|
: await fs.read(currentFilepath);
|
|
@@ -8535,7 +8535,7 @@ async function applyTreeChanges({
|
|
|
8535
8535
|
});
|
|
8536
8536
|
|
|
8537
8537
|
// apply the changes to work dir
|
|
8538
|
-
await acquireLock$1(
|
|
8538
|
+
await acquireLock$1(gitdir, async () => {
|
|
8539
8539
|
for (const op of ops) {
|
|
8540
8540
|
const currentFilepath = join(dir, op.filepath);
|
|
8541
8541
|
switch (op.method) {
|
|
@@ -9572,8 +9572,8 @@ function filterCapabilities(server, client) {
|
|
|
9572
9572
|
|
|
9573
9573
|
const pkg = {
|
|
9574
9574
|
name: 'isomorphic-git',
|
|
9575
|
-
version: '1.40.
|
|
9576
|
-
agent: 'git/isomorphic-git@1.40.
|
|
9575
|
+
version: '1.40.6',
|
|
9576
|
+
agent: 'git/isomorphic-git@1.40.6',
|
|
9577
9577
|
};
|
|
9578
9578
|
|
|
9579
9579
|
class FIFO {
|
|
@@ -15930,7 +15930,7 @@ class GitStashManager {
|
|
|
15930
15930
|
);
|
|
15931
15931
|
const filepath = this.refLogsStashPath;
|
|
15932
15932
|
|
|
15933
|
-
await acquireLock$1(
|
|
15933
|
+
await acquireLock$1(filepath, async () => {
|
|
15934
15934
|
const appendTo = (await this.fs.exists(filepath))
|
|
15935
15935
|
? await this.fs.read(filepath, 'utf8')
|
|
15936
15936
|
: '';
|
|
@@ -16140,7 +16140,7 @@ async function _stashDrop({ fs, dir, gitdir, refIdx = 0 }) {
|
|
|
16140
16140
|
reflogEntries.splice(refIdx, 1);
|
|
16141
16141
|
|
|
16142
16142
|
const stashReflogPath = stashMgr.refLogsStashPath;
|
|
16143
|
-
await acquireLock$1(
|
|
16143
|
+
await acquireLock$1(stashReflogPath, async () => {
|
|
16144
16144
|
if (reflogEntries.length) {
|
|
16145
16145
|
await fs.write(
|
|
16146
16146
|
stashReflogPath,
|
package/index.js
CHANGED
|
@@ -8307,7 +8307,7 @@ async function checkAndWriteBlob(fs, gitdir, dir, filepath, oid = null) {
|
|
|
8307
8307
|
: undefined;
|
|
8308
8308
|
let retOid = objContent ? oid : undefined;
|
|
8309
8309
|
if (!objContent) {
|
|
8310
|
-
await acquireLock$1(
|
|
8310
|
+
await acquireLock$1(currentFilepath, async () => {
|
|
8311
8311
|
const object = stats.isSymbolicLink()
|
|
8312
8312
|
? await fs.readlink(currentFilepath).then(posixifyPathBuffer)
|
|
8313
8313
|
: await fs.read(currentFilepath);
|
|
@@ -8522,7 +8522,7 @@ async function applyTreeChanges({
|
|
|
8522
8522
|
});
|
|
8523
8523
|
|
|
8524
8524
|
// apply the changes to work dir
|
|
8525
|
-
await acquireLock$1(
|
|
8525
|
+
await acquireLock$1(gitdir, async () => {
|
|
8526
8526
|
for (const op of ops) {
|
|
8527
8527
|
const currentFilepath = join(dir, op.filepath);
|
|
8528
8528
|
switch (op.method) {
|
|
@@ -9559,8 +9559,8 @@ function filterCapabilities(server, client) {
|
|
|
9559
9559
|
|
|
9560
9560
|
const pkg = {
|
|
9561
9561
|
name: 'isomorphic-git',
|
|
9562
|
-
version: '1.40.
|
|
9563
|
-
agent: 'git/isomorphic-git@1.40.
|
|
9562
|
+
version: '1.40.6',
|
|
9563
|
+
agent: 'git/isomorphic-git@1.40.6',
|
|
9564
9564
|
};
|
|
9565
9565
|
|
|
9566
9566
|
class FIFO {
|
|
@@ -15917,7 +15917,7 @@ class GitStashManager {
|
|
|
15917
15917
|
);
|
|
15918
15918
|
const filepath = this.refLogsStashPath;
|
|
15919
15919
|
|
|
15920
|
-
await acquireLock$1(
|
|
15920
|
+
await acquireLock$1(filepath, async () => {
|
|
15921
15921
|
const appendTo = (await this.fs.exists(filepath))
|
|
15922
15922
|
? await this.fs.read(filepath, 'utf8')
|
|
15923
15923
|
: '';
|
|
@@ -16127,7 +16127,7 @@ async function _stashDrop({ fs, dir, gitdir, refIdx = 0 }) {
|
|
|
16127
16127
|
reflogEntries.splice(refIdx, 1);
|
|
16128
16128
|
|
|
16129
16129
|
const stashReflogPath = stashMgr.refLogsStashPath;
|
|
16130
|
-
await acquireLock$1(
|
|
16130
|
+
await acquireLock$1(stashReflogPath, async () => {
|
|
16131
16131
|
if (reflogEntries.length) {
|
|
16132
16132
|
await fs.write(
|
|
16133
16133
|
stashReflogPath,
|