@emulsify/cli 1.4.2 → 1.4.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.
@@ -11,19 +11,13 @@ function cloneIntoCache(bucket, itemPath) {
11
11
  return async ({ repository, checkout }) => {
12
12
  const destination = (0, getCachedItemPath_1.default)(bucket, itemPath);
13
13
  const parentDir = (0, path_1.dirname)(destination);
14
- let git = (0, simple_git_1.default)();
15
14
  if ((0, fs_1.existsSync)(destination)) {
16
- if (checkout) {
17
- git = (0, simple_git_1.default)(destination);
18
- await git.fetch();
19
- await git.checkout(checkout);
20
- await git.pull();
21
- }
22
15
  return;
23
16
  }
24
17
  if (!(0, fs_1.existsSync)(parentDir)) {
25
18
  await fs_1.promises.mkdir(parentDir, { recursive: true });
26
19
  }
20
+ const git = (0, simple_git_1.default)();
27
21
  await git.clone(repository, destination, checkout
28
22
  ? {
29
23
  '--branch': checkout,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emulsify/cli",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "Command line interface for Emulsify",
5
5
  "repository": "git@github.com:emulsify-ds/emulsify-cli.git",
6
6
  "author": "Patrick Coffey <patrickcoffey48@gmail.com>",