isomorphic-git 1.40.2 → 1.40.4
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 +8 -3
- package/index.js +8 -3
- package/index.umd.min.js +1 -1
- package/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -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.4',
|
|
9576
|
+
agent: 'git/isomorphic-git@1.40.4',
|
|
9577
9577
|
};
|
|
9578
9578
|
|
|
9579
9579
|
class FIFO {
|
|
@@ -16397,7 +16397,12 @@ async function status({
|
|
|
16397
16397
|
if (I && !compareStats(indexEntry, stats)) {
|
|
16398
16398
|
return indexEntry.oid
|
|
16399
16399
|
} else {
|
|
16400
|
-
|
|
16400
|
+
// Read through the same core.autocrlf normalisation GitWalkerFs uses,
|
|
16401
|
+
// so the working copy hashes to the blob that was stored. Without it a
|
|
16402
|
+
// CRLF checkout of an LF blob reads as modified.
|
|
16403
|
+
const config = await GitConfigManager.get({ fs, gitdir: updatedGitdir });
|
|
16404
|
+
const autocrlf = await config.get('core.autocrlf');
|
|
16405
|
+
const object = await fs.read(join(dir, filepath), { autocrlf });
|
|
16401
16406
|
const workdirOid = await hashObject$1({
|
|
16402
16407
|
gitdir: updatedGitdir,
|
|
16403
16408
|
type: 'blob',
|
package/index.js
CHANGED
|
@@ -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.4',
|
|
9563
|
+
agent: 'git/isomorphic-git@1.40.4',
|
|
9564
9564
|
};
|
|
9565
9565
|
|
|
9566
9566
|
class FIFO {
|
|
@@ -16384,7 +16384,12 @@ async function status({
|
|
|
16384
16384
|
if (I && !compareStats(indexEntry, stats)) {
|
|
16385
16385
|
return indexEntry.oid
|
|
16386
16386
|
} else {
|
|
16387
|
-
|
|
16387
|
+
// Read through the same core.autocrlf normalisation GitWalkerFs uses,
|
|
16388
|
+
// so the working copy hashes to the blob that was stored. Without it a
|
|
16389
|
+
// CRLF checkout of an LF blob reads as modified.
|
|
16390
|
+
const config = await GitConfigManager.get({ fs, gitdir: updatedGitdir });
|
|
16391
|
+
const autocrlf = await config.get('core.autocrlf');
|
|
16392
|
+
const object = await fs.read(join(dir, filepath), { autocrlf });
|
|
16388
16393
|
const workdirOid = await hashObject$1({
|
|
16389
16394
|
gitdir: updatedGitdir,
|
|
16390
16395
|
type: 'blob',
|