Skip to content

Commit

Permalink
Test partial tree clone
Browse files Browse the repository at this point in the history
  • Loading branch information
mephenor committed Apr 16, 2024
1 parent c75f2d1 commit 2a3c3f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/monorepo_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
filter: tree:0
fetch-depth: 0

- id: fetch-latest-main
run: git fetch --depth=1 origin main:main
Expand All @@ -36,7 +37,8 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
filter: tree:0
fetch-depth: 0

- name: update pip
run: python -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion scripts/affected_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def files_in_diff(full: bool, target: str) -> list[str]:
"""List files in diff."""
# Command to list names of changed files
change_range = f"{target}...HEAD" if full else "HEAD^1..HEAD"
command = f"git diff --merge-base --name-only {change_range}"
command = f"git diff --name-only {change_range}"

# Execute the command and capture the output
result = subprocess.run(
Expand Down

0 comments on commit 2a3c3f7

Please sign in to comment.