You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Faulty message when trying to drag and drop git repo folder with dubious ownership #397
Good evening.
I was adding some of my repositories by drag and drop until one did not want to add up.
As the image shows this is an GIT initialised folder as the .git is present.
From CLI it gives a specific reason to that. This is because I reinstalled Windows yet the folder was already created.
SourceGit should display a specific message too.
Moreover, init the folder is not a good option neither. Instead it should propose to add the folder to safe repos. Then open the repo if added to the list.
It of course works should I do what CLI output proposes.
It's because when you drop a folder, this program will try to find the real git dir (for submodules and worktrees the real git dir is not just under the repository root) via command git rev-parse --git-dir. Then it can open repository and setup filesystem watchers with these paths (The filesystem watchers helps us to determine what's changed and then refresh the UI).
Activity
love-linger commentedon Aug 23, 2024
It's because when you drop a folder, this program will try to find the real git dir (for submodules and worktrees the real git dir is not just under the repository root) via command
git rev-parse --git-dir. Then it can open repository and setup filesystem watchers with these paths (The filesystem watchers helps us to determine what's changed and then refresh the UI).love-linger commentedon Aug 23, 2024
Duplicated #276
enhance: show git errors when failed to get the repository root dir o…
love-linger commentedon Aug 27, 2024
I've pushed a commit to show git errors in this popup.
