Skip to content

Commit fd03c13

Browse files
Revert "Restore push / pull functionality to empty Cloudinary/local directory"
This reverts commit 26eb9f5.
1 parent 41eec53 commit fd03c13

File tree

3 files changed

+6
-17
lines changed

3 files changed

+6
-17
lines changed

CHANGELOG.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11

2-
1.0.1 / 2020-04-01
3-
=============
4-
5-
* Restore `push` / `pull` functionality to empty Cloudinary/local directory
6-
7-
1.0.0 / 2020-04-01
2+
1.0.0 / 2020-04-01
83
=============
94
* Clean up and refactor code
105

cloudinary_cli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "1.0.1"
1+
__version__ = "1.0.0"
22

33
import cloudinary
44

cloudinary_cli/modules/sync.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,8 @@ def _get_out_of_sync_file_names(self, common_file_names):
8080

8181
def push(self):
8282
if not self._delete_unique_remote_files():
83-
if not (self.force or confirm_action(
84-
f"Cloudinary folder `{abspath(self.remote_dir)}` is empty or does not exist. "
85-
"Continue? (y/N) ")):
86-
logger.info("Aborting...")
87-
return False
83+
logger.info("Aborting...")
84+
return False
8885

8986
files_to_push = self.unique_local_file_names | self.out_of_sync_file_names
9087

@@ -145,11 +142,8 @@ def _delete_unique_remote_files(self):
145142

146143
def pull(self):
147144
if not self._delete_unique_local_files():
148-
if not (self.force or confirm_action(
149-
f"Local directory `{abspath(self.local_dir)}` is empty or does not exist. "
150-
"Continue? (y/N) ")):
151-
logger.info("Aborting...")
152-
return False
145+
logger.info("Aborting...")
146+
return False
153147

154148
if not (self.force or confirm_action(
155149
f"Running this command will delete {len(self.unique_local_file_names)} local files. "

0 commit comments

Comments
 (0)