Skip to content

Commit 9c2093d

Browse files
committed
fix: correct order of arguments while gathering files to lint
1 parent 8d51a11 commit 9c2093d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/git.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,12 @@ pub fn get_changed_files(git_root: &AbsPath, relative_to: Option<&str>) -> Resul
5858
"--no-commit-id",
5959
"--name-status",
6060
"-r",
61-
"HEAD",
6261
];
6362
if let Some(relative_to) = relative_to {
6463
args.push(relative_to);
6564
}
65+
args.push("HEAD");
66+
6667
let output = Command::new("git")
6768
.args(&args)
6869
.current_dir(git_root)

0 commit comments

Comments
 (0)