@ghl-ai/aw 0.1.42-beta.41 → 0.1.42-beta.43
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/ecc.mjs +4 -0
- package/package.json +1 -1
package/ecc.mjs
CHANGED
|
@@ -100,6 +100,8 @@ async function cloneOrUpdateAsync(tag, dest) {
|
|
|
100
100
|
}
|
|
101
101
|
await fetchOverrideRefAsync(dest, overrideRef || tag);
|
|
102
102
|
}
|
|
103
|
+
// Restore working tree — pruneStaleHooks may have deleted tracked files
|
|
104
|
+
await runA(`git -C ${dest} checkout -- .`);
|
|
103
105
|
return;
|
|
104
106
|
} catch { /* fall through to fresh clone */ }
|
|
105
107
|
}
|
|
@@ -197,6 +199,8 @@ function cloneOrUpdate(tag, dest) {
|
|
|
197
199
|
}
|
|
198
200
|
fetchOverrideRef(dest, overrideRef || tag);
|
|
199
201
|
}
|
|
202
|
+
// Restore working tree — pruneStaleHooks may have deleted tracked files
|
|
203
|
+
run(`git -C ${dest} checkout -- .`);
|
|
200
204
|
return;
|
|
201
205
|
} catch { /* fall through to fresh clone */ }
|
|
202
206
|
}
|