gerrit: do not use --relative for diff command
difffilter can only support diff with path from repository root
@@ -64,8 +64,7 @@ func (g *ChangeDiff) gitDiff(_ context.Context, baseSha, targetSha string) ([]by
return nil, fmt.Errorf("failed to get merge-base commit: %v", err)
}
mergeBase := strings.Trim(string(b), "\n")
- relArg := fmt.Sprintf("--relative=%s", g.wd)
- bytes, err := exec.Command("git", "diff", relArg, "--find-renames", mergeBase, baseSha).Output()
+ bytes, err := exec.Command("git", "diff", "--find-renames", mergeBase, baseSha).Output()
if err != nil {
return nil, fmt.Errorf("failed to run git diff: %v", err)
}
