Skip to content

Commit

Permalink
diff: be windows friendly at file counting
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr. Outis committed Jan 30, 2020
1 parent 793a069 commit 673afe2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dvc/command/diff.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import argparse
import json
import logging
import os

import colorama

Expand Down Expand Up @@ -66,7 +67,7 @@ def _digest(checksum):
for entry in entries:
path = entry["path"]
checksum = entry.get("checksum")
summary[state] += 1 if not path.endswith("/") else 0
summary[state] += 1 if not path.endswith(os.sep) else 0
content.append(
"{space}{checksum}{separator}{path}".format(
space=" ",
Expand Down

0 comments on commit 673afe2

Please sign in to comment.