Skip to content

Commit 7adf897

Browse files
committed
Minor review fixups
1 parent 037ce0f commit 7adf897

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

dfetch/project/svn.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -424,9 +424,9 @@ def _untracked_files(path: str, ignore: Sequence[str]) -> list[str]:
424424
files = []
425425
for line in result:
426426
if line.startswith("?"):
427-
files.append(line[1:].strip())
428-
for pattern in ignore:
429-
if pathlib.Path(line[1:].strip()).match(pattern):
430-
files.pop()
431-
break
427+
file_path = line[1:].strip()
428+
if not any(
429+
pathlib.Path(file_path).match(pattern) for pattern in ignore
430+
):
431+
files.append(file_path)
432432
return files

dfetch/vcs/git.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,6 @@ def create_diff(
338338

339339
if ignore:
340340
cmd.extend(["--", "."])
341-
ignore = ignore or []
342341
for ignore_path in ignore:
343342
cmd.append(f":(exclude){ignore_path}")
344343
result = run_on_cmdline(logger, cmd)

features/journey-basic-patching.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Feature: Basic patch journey
22

3-
The main user journey is for patching is:
3+
The main user journey for patching is:
44
- Adding a project to a manifest
55
- Fetching the new project and committing it.
66
- Changing files in the fetched project.

0 commit comments

Comments
 (0)