diff options
| author | Max Audron <audron@cocaine.farm> | 2025-04-08 16:54:07 +0200 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2025-04-08 16:54:07 +0200 |
| commit | 02639f2f5aebfebc9e8c19b698376fd5ccad27da (patch) | |
| tree | e1515fbbd75f69eabc7c87f2acd6ed3039780a2b /src/repo/git/checkout.rs | |
| parent | only checkout repo if clean (diff) | |
cleanup warnings and unused code
Diffstat (limited to '')
| -rw-r--r-- | src/repo/git/checkout.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repo/git/checkout.rs b/src/repo/git/checkout.rs index 44879a6..87c63c1 100644 --- a/src/repo/git/checkout.rs +++ b/src/repo/git/checkout.rs @@ -21,7 +21,7 @@ impl Repo { ) -> Result<(), RepoError> { let repo = self.repo()?; - let workdir = repo.work_dir().ok_or(RepoError::NoWorktree)?; + let workdir = repo.workdir().ok_or(RepoError::NoWorktree)?; let head_tree = head .object() .context("could not find object HEAD points to")? |
