Skip to content

Commit ddc2f50

Browse files
committed
fix: handle empty git paths by replacing with "." in release validator;
introduced today (a2ec9b1).
1 parent 3220bde commit ddc2f50

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/release/validator.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,10 @@ impl<'a> ReleaseValidator<'a> {
156156
.as_std_path()
157157
.strip_prefix(self.ctx.workspace_root())
158158
.unwrap_or_else(|_| crate_dir.as_std_path());
159-
let git_path = utils::path_to_git_format(relative_path);
159+
let git_path = {
160+
let path = utils::path_to_git_format(relative_path);
161+
if path.is_empty() { ".".to_string() } else { path }
162+
};
160163

161164
// Check for changes in this directory
162165
let output = self

0 commit comments

Comments
 (0)