Skip to content

Commit 9806cb0

Browse files
committed
fix: submodule status won't accidentally be run on submodules without a worktree.
1 parent 03aa2e3 commit 9806cb0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

gix/src/submodule/mod.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -314,11 +314,7 @@ pub mod status {
314314
/// ordered from cheap to expensive shows that the submodule is dirty.
315315
/// Thus, submodules that are clean will still impose the complete set of computation, as given.
316316
#[doc(alias = "submodule_status", alias = "git2")]
317-
pub fn status(
318-
&self,
319-
ignore: config::Ignore,
320-
check_dirty: bool,
321-
) -> Result<crate::submodule::status::types::Status, Error> {
317+
pub fn status(&self, ignore: config::Ignore, check_dirty: bool) -> Result<Status, Error> {
322318
self.status_opts(ignore, check_dirty, &mut |s| s)
323319
}
324320
/// Return the status of the submodule, just like [`status`](Self::status), but allows to adjust options

0 commit comments

Comments
 (0)