Skip to content

Commit

Permalink
fix sytle checking
Browse files Browse the repository at this point in the history
  • Loading branch information
DedSecer committed Jul 30, 2021
1 parent a7cf333 commit e58448b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dulwich/porcelain.py
Original file line number Diff line number Diff line change
Expand Up @@ -1211,13 +1211,13 @@ def status(repo=".", ignored=False):
# 1. Get status of staged
tracked_changes = get_tree_changes(r)
for key in tracked_changes.keys():
tracked_changes[key] = [file.decode() for file in tracked_changes[key]] #decode
tracked_changes[key] = [file.decode() for file in tracked_changes[key]]
# 2. Get status of unstaged
index = r.open_index()
normalizer = r.get_blob_normalizer()
filter_callback = normalizer.checkin_normalize
unstaged_changes = list(get_unstaged_changes(index, r.path, filter_callback))
unstaged_changes = [file.decode() for file in unstaged_changes] # decode
unstaged_changes = [file.decode() for file in unstaged_changes]

untracked_paths = get_untracked_paths(
r.path, r.path, index, exclude_ignored=not ignored
Expand Down

0 comments on commit e58448b

Please sign in to comment.