Open
Description
Current behavior 😯
When using a git bare repo with submodules (dotfiles) gix status
results in a crash, it seels that the submodule is resolved to the wrong path (missing the username, should be /home/bhagwan...
):
Text version of the error:
→ gix status
Error: Could not determine status for submodule at '.config/awesome/lain'
Caused by:
Worktree root at '/home/.config/awesome/lain' is not a directory
Stack backtrace:
0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: __libc_start_call_main
at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
10: __libc_start_main_impl
at ./csu/../csu/libc-start.c:360:3
11: <unknown>
Expected behavior 🤔
Expected to return the output of the status command.
Git behavior
git status
succeeds with no issue:
Output of submodule:
Output of worktree list:
Steps to reproduce 🕹
- setup git repository with submodules in
~/dots
- cd ~/dots
- git config core.worktree $HOME
- ln -fs ~/dots/.git ~/.git
- cd ..
gix status
(in $HOME)
If you wish to try it out, the process above is automated by my dotfiles install script.