Git · Senior · Question 65 of 76

Why might CI on a shallow clone compute the wrong set of changed files?

Explanation

Diffing a PR against main needs their common ancestor. Fetch enough depth (or the base branch) before computing affected packages.

Further reading

Problem with a question

Git · Senior · question 65

Test yourself

Take the Git · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz