isomorphic-git 1.42.2 → 1.42.3
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 -3
- package/index.js +6 -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
|
@@ -6256,12 +6256,15 @@ async function _commit({
|
|
|
6256
6256
|
gitdir,
|
|
6257
6257
|
ref,
|
|
6258
6258
|
});
|
|
6259
|
-
refCommit = await _readCommit({ fs, gitdir, oid: refOid, cache: {} });
|
|
6260
6259
|
} catch {
|
|
6261
6260
|
// We assume that there's no commit and this is the initial commit
|
|
6262
6261
|
initialCommit = true;
|
|
6263
6262
|
}
|
|
6264
6263
|
|
|
6264
|
+
if (!initialCommit && (amend || disallowEmpty)) {
|
|
6265
|
+
refCommit = await _readCommit({ fs, gitdir, oid: refOid, cache });
|
|
6266
|
+
}
|
|
6267
|
+
|
|
6265
6268
|
if (amend && initialCommit) {
|
|
6266
6269
|
throw new NoCommitError(ref)
|
|
6267
6270
|
}
|
|
@@ -9800,8 +9803,8 @@ function filterCapabilities(server, client) {
|
|
|
9800
9803
|
|
|
9801
9804
|
const pkg = {
|
|
9802
9805
|
name: 'isomorphic-git',
|
|
9803
|
-
version: '1.42.
|
|
9804
|
-
agent: 'git/isomorphic-git@1.42.
|
|
9806
|
+
version: '1.42.3',
|
|
9807
|
+
agent: 'git/isomorphic-git@1.42.3',
|
|
9805
9808
|
};
|
|
9806
9809
|
|
|
9807
9810
|
class FIFO {
|
package/index.js
CHANGED
|
@@ -6243,12 +6243,15 @@ async function _commit({
|
|
|
6243
6243
|
gitdir,
|
|
6244
6244
|
ref,
|
|
6245
6245
|
});
|
|
6246
|
-
refCommit = await _readCommit({ fs, gitdir, oid: refOid, cache: {} });
|
|
6247
6246
|
} catch {
|
|
6248
6247
|
// We assume that there's no commit and this is the initial commit
|
|
6249
6248
|
initialCommit = true;
|
|
6250
6249
|
}
|
|
6251
6250
|
|
|
6251
|
+
if (!initialCommit && (amend || disallowEmpty)) {
|
|
6252
|
+
refCommit = await _readCommit({ fs, gitdir, oid: refOid, cache });
|
|
6253
|
+
}
|
|
6254
|
+
|
|
6252
6255
|
if (amend && initialCommit) {
|
|
6253
6256
|
throw new NoCommitError(ref)
|
|
6254
6257
|
}
|
|
@@ -9787,8 +9790,8 @@ function filterCapabilities(server, client) {
|
|
|
9787
9790
|
|
|
9788
9791
|
const pkg = {
|
|
9789
9792
|
name: 'isomorphic-git',
|
|
9790
|
-
version: '1.42.
|
|
9791
|
-
agent: 'git/isomorphic-git@1.42.
|
|
9793
|
+
version: '1.42.3',
|
|
9794
|
+
agent: 'git/isomorphic-git@1.42.3',
|
|
9792
9795
|
};
|
|
9793
9796
|
|
|
9794
9797
|
class FIFO {
|