Skip to content

Commit a9983f9

Browse files
committed
checkout: explain weird code in Repo.checkout()
1 parent c45b399 commit a9983f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dvc/repo/checkout.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ def _checkout(
5656
total = get_all_files_numbers(stages)
5757
if total == 0:
5858
logger.info("Nothing to do")
59+
# We might need to create empty dirs though, so no return here
5960

6061
with Tqdm(total=total, unit="file", desc="Checkout") as pbar, flags(
6162
tqdm=pbar

0 commit comments

Comments
 (0)