We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 222532a commit 1a6c81fCopy full SHA for 1a6c81f
gix/src/open/repository.rs
@@ -308,7 +308,7 @@ impl ThreadSafeRepository {
308
worktree_dir = gix_path::realpath(&wt_path).ok();
309
// restore the relative path if possible after resolving the absolute path
310
if wt_path.is_relative() {
311
- if let Some(rel_path) = worktree_dir.as_deref().and_then(|p| p.strip_prefix(¤t_dir).ok()) {
+ if let Some(rel_path) = worktree_dir.as_deref().and_then(|p| p.strip_prefix(current_dir).ok()) {
312
worktree_dir = Some(rel_path.to_path_buf());
313
}
314
gix/tests/fixtures/generated-archives/make_submodules.tar
-224 KB
0 commit comments