aboutsummaryrefslogtreecommitdiff
path: root/src/repo/git/checkout.rs
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2025-04-08 16:54:07 +0200
committerMax Audron <audron@cocaine.farm>2025-04-08 16:54:07 +0200
commit02639f2f5aebfebc9e8c19b698376fd5ccad27da (patch)
treee1515fbbd75f69eabc7c87f2acd6ed3039780a2b /src/repo/git/checkout.rs
parentonly checkout repo if clean (diff)
cleanup warnings and unused code
Diffstat (limited to 'src/repo/git/checkout.rs')
-rw-r--r--src/repo/git/checkout.rs2
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")?