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
My previous issue #612 was about repos not being properly managed when the work tree is out of the git dir.
I submitted a PR #614 to address this, which was merged, albeit with some modifications, eg. 0fd2d55, which changes the logic I proposed to determine the name of a repo to avoid infinite loops (which I did not experience, but I admit I did not test extensively).
However, this seems to lead to a resurgence of the initial problem.
cd /tmp
mkdir a b
git --git-dir a --work-tree b init
touch b/test
opening a in Gittyup gives a title of tmp (in #612 that was b). It actually gets registered as /tmp in Gittyup.conf.
Moreover, in my actual use case of a git repo in $HOME/Documents/Enseignement/publication-tex.git/ having a config set to worktree = $HOME/Documents/Enseignement/somewhere/Chato-Info/etc/chato, I stumble back on the unwanted behaviour that opening that repo (from its git repo dir) works but lists the repo as Enseignement and writes an inconsistent state in Gittyup.conf, with lastpath being, correctly, $HOME/Documents/Enseignement/publication-tex.git, but the repo appearing as $HOME/Documents/Enseignement in the recent list. Therefore, the repo also gets listed as Enseignement in the recent list of the GUI, and trying to open the repo from that list leads to an error.
The text was updated successfully, but these errors were encountered:
My previous issue #612 was about repos not being properly managed when the work tree is out of the git dir.
I submitted a PR #614 to address this, which was merged, albeit with some modifications, eg. 0fd2d55, which changes the logic I proposed to determine the name of a repo to avoid infinite loops (which I did not experience, but I admit I did not test extensively).
However, this seems to lead to a resurgence of the initial problem.
With the situation of #612, namely
opening
a
in Gittyup gives a title oftmp
(in #612 that wasb
). It actually gets registered as/tmp
inGittyup.conf
.Moreover, in my actual use case of a git repo in
$HOME/Documents/Enseignement/publication-tex.git/
having a config set toworktree = $HOME/Documents/Enseignement/somewhere/Chato-Info/etc/chato
, I stumble back on the unwanted behaviour that opening that repo (from its git repo dir) works but lists the repo asEnseignement
and writes an inconsistent state inGittyup.conf
, withlastpath
being, correctly,$HOME/Documents/Enseignement/publication-tex.git
, but the repo appearing as$HOME/Documents/Enseignement
in the recent list. Therefore, the repo also gets listed asEnseignement
in the recent list of the GUI, and trying to open the repo from that list leads to an error.The text was updated successfully, but these errors were encountered: