Fix --exclude with filenames that have spaces on Git repositories.

Review Request #14499 — Created July 8, 2025 and submitted

Information

RBTools
release-5.x

Reviewers

The implementation of --exclude for Git repositories was just using
.split() on the output from git diff-tree, which was causing it to
fail if any filenames included spaces. This change fixes it to properly
split on tab characters instead.

Ran unit tests.

Summary ID
Fix --exclude with filenames that have spaces on Git repositories.
The implementation of --exclude for Git repositories was just using `.split()` on the output from `git diff-tree`, which was causing it to fail if any filenames included spaces. This change fixes it to properly split on tab characters instead. Testing Done: Ran unit tests. Fixes bug 5045
daaacb8e7e07dcadd7131b119c4d595c8d3b90f9
chipx86
  1. Ship It!
  2. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to release-5.x (4d847e5)