isomorphic-git 1.40.4 → 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 +12 -10
- package/index.js +12 -10
- 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/managers/index.cjs
CHANGED
|
@@ -5971,7 +5971,7 @@ async function checkAndWriteBlob(fs, gitdir, dir, filepath, oid = null) {
|
|
|
5971
5971
|
: undefined;
|
|
5972
5972
|
let retOid = objContent ? oid : undefined;
|
|
5973
5973
|
if (!objContent) {
|
|
5974
|
-
await acquireLock$1(
|
|
5974
|
+
await acquireLock$1(currentFilepath, async () => {
|
|
5975
5975
|
const object = stats.isSymbolicLink()
|
|
5976
5976
|
? await fs.readlink(currentFilepath).then(posixifyPathBuffer)
|
|
5977
5977
|
: await fs.read(currentFilepath);
|
|
@@ -6186,7 +6186,7 @@ async function applyTreeChanges({
|
|
|
6186
6186
|
});
|
|
6187
6187
|
|
|
6188
6188
|
// apply the changes to work dir
|
|
6189
|
-
await acquireLock$1(
|
|
6189
|
+
await acquireLock$1(gitdir, async () => {
|
|
6190
6190
|
for (const op of ops) {
|
|
6191
6191
|
const currentFilepath = join(dir, op.filepath);
|
|
6192
6192
|
switch (op.method) {
|
|
@@ -6417,7 +6417,7 @@ class GitStashManager {
|
|
|
6417
6417
|
);
|
|
6418
6418
|
const filepath = this.refLogsStashPath;
|
|
6419
6419
|
|
|
6420
|
-
await acquireLock$1(
|
|
6420
|
+
await acquireLock$1(filepath, async () => {
|
|
6421
6421
|
const appendTo = (await this.fs.exists(filepath))
|
|
6422
6422
|
? await this.fs.read(filepath, 'utf8')
|
|
6423
6423
|
: '';
|
package/managers/index.js
CHANGED
|
@@ -5958,7 +5958,7 @@ async function checkAndWriteBlob(fs, gitdir, dir, filepath, oid = null) {
|
|
|
5958
5958
|
: undefined;
|
|
5959
5959
|
let retOid = objContent ? oid : undefined;
|
|
5960
5960
|
if (!objContent) {
|
|
5961
|
-
await acquireLock$1(
|
|
5961
|
+
await acquireLock$1(currentFilepath, async () => {
|
|
5962
5962
|
const object = stats.isSymbolicLink()
|
|
5963
5963
|
? await fs.readlink(currentFilepath).then(posixifyPathBuffer)
|
|
5964
5964
|
: await fs.read(currentFilepath);
|
|
@@ -6173,7 +6173,7 @@ async function applyTreeChanges({
|
|
|
6173
6173
|
});
|
|
6174
6174
|
|
|
6175
6175
|
// apply the changes to work dir
|
|
6176
|
-
await acquireLock$1(
|
|
6176
|
+
await acquireLock$1(gitdir, async () => {
|
|
6177
6177
|
for (const op of ops) {
|
|
6178
6178
|
const currentFilepath = join(dir, op.filepath);
|
|
6179
6179
|
switch (op.method) {
|
|
@@ -6404,7 +6404,7 @@ class GitStashManager {
|
|
|
6404
6404
|
);
|
|
6405
6405
|
const filepath = this.refLogsStashPath;
|
|
6406
6406
|
|
|
6407
|
-
await acquireLock$1(
|
|
6407
|
+
await acquireLock$1(filepath, async () => {
|
|
6408
6408
|
const appendTo = (await this.fs.exists(filepath))
|
|
6409
6409
|
? await this.fs.read(filepath, 'utf8')
|
|
6410
6410
|
: '';
|