easegit-cli 1.0.3 → 1.0.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/dist/snapshot/create.js +5 -2
- package/package.json +1 -1
package/dist/snapshot/create.js
CHANGED
|
@@ -13,8 +13,11 @@ function createCheckpoint(operation) {
|
|
|
13
13
|
(0, plumbing_1.createCheckpointRef)(treeSha, operation);
|
|
14
14
|
}
|
|
15
15
|
catch (error) {
|
|
16
|
-
//
|
|
17
|
-
//
|
|
16
|
+
// Log errors to help debug, but don't block the operation
|
|
17
|
+
// Checkpoints are best-effort and should never fail a git operation
|
|
18
|
+
if (process.env.EASEGIT_DEBUG) {
|
|
19
|
+
console.error('[EaseGit Debug] Checkpoint creation failed:', error.message);
|
|
20
|
+
}
|
|
18
21
|
}
|
|
19
22
|
}
|
|
20
23
|
// CommonJS export for hook scripts
|