Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
pat-trunk-io committed Aug 2, 2024
1 parent 7f4bdab commit 9f3da19
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/scripts/compute_impacted_targets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ if [[ -n ${VERBOSE-} ]]; then
echo "Merge Instance Depth= ${merge_instance_depth}"

git checkout -q "${MERGE_INSTANCE_BRANCH_HEAD_SHA}"
git clean -dfx -f --exclude=".trunk" --exclude="tests" --exclude="local-action" .
git clean -dfx -f --exclude=".trunk" --exclude="local-action" .
git submodule update --recursive
git log -n "${merge_instance_depth}" --oneline | cat

Expand All @@ -112,7 +112,7 @@ if [[ -n ${VERBOSE-} ]]; then
echo "PR Depth= ${pr_depth}"

git checkout -q "${original_branch}"
git clean -dfx -f --exclude=".trunk" --exclude="tests" --exclude="local-action" .
git clean -dfx -f --exclude=".trunk" --exclude="local-action" .
git submodule update --recursive
git log -n "${pr_depth}" --oneline | cat
fi
Expand All @@ -137,7 +137,7 @@ else
fi
logIfVerbose "Hashes for upstream don't exist in cache, changing branch and computing..."
git checkout -q "${MERGE_INSTANCE_BRANCH_HEAD_SHA}"
git clean -dfx -f --exclude=".trunk" --exclude="tests" --exclude="bazel-diff.jar" --exclude="user.bazelrc" --exclude="local-action" .
git clean -dfx -f --exclude=".trunk" --exclude="bazel-diff.jar" --exclude="user.bazelrc" --exclude="local-action" .
git submodule update --recursive
generate_hashes "${merge_instance_branch_out}"
try_checkout_head
Expand All @@ -149,14 +149,14 @@ if [[ -e ${merge_instance_with_pr_branch_out} ]]; then
else
logIfVerbose "Hashes for merge result don't exist in cache, merging and computing..."
git -c "user.name=Trunk Actions" -c "[email protected]" merge --squash "${original_branch}"
git clean -dfx -f --exclude=".trunk" --exclude="tests" --exclude="bazel-diff.jar" --exclude="${MERGE_INSTANCE_BRANCH_HEAD_SHA}" --exclude="bazel-*" --exclude="user.bazelrc" --exclude="local-action" .
git clean -dfx -f --exclude=".trunk" --exclude="bazel-diff.jar" --exclude="${MERGE_INSTANCE_BRANCH_HEAD_SHA}" --exclude="bazel-*" --exclude="user.bazelrc" --exclude="local-action" .
git submodule update --recursive
generate_hashes "${merge_instance_with_pr_branch_out}"
fi

# Reset back to the original branch
git checkout -q "${original_branch}"
git clean -dfx -f --exclude=".trunk" --exclude="tests" --exclude="bazel-diff.jar" --exclude="${MERGE_INSTANCE_BRANCH_HEAD_SHA}" --exclude="${PR_BRANCH_HEAD_SHA}_${MERGE_INSTANCE_BRANCH_HEAD_SHA}" --exclude="user.bazelrc" --exclude="bazel-*" --exclude="local-action" .
git clean -dfx -f --exclude=".trunk" --exclude="bazel-diff.jar" --exclude="${MERGE_INSTANCE_BRANCH_HEAD_SHA}" --exclude="${PR_BRANCH_HEAD_SHA}_${MERGE_INSTANCE_BRANCH_HEAD_SHA}" --exclude="user.bazelrc" --exclude="bazel-*" --exclude="local-action" .
git submodule update --recursive

# Compute impacted targets
Expand Down

0 comments on commit 9f3da19

Please sign in to comment.