-
-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gittyup gets confused with work-tree out of git-dir #612
Comments
Hi, did you have a look into git submodules? I think this is better than having nested git repositories |
Yes I do, but in this case they are not practical. Anyway, the problem is really about the work-tree not being a subfolder of the git repo. I will update the initial post to give a better MWE. |
Thanks for the MR.
Do you ignore the subfolder |
I stage in both repositories, and not always the same files. Those are latex files, so we need them to be in the same place in order for my colleagues to configure their texmf without too much trouble, but I publish only those that I authored personally.
--
Cordialement,
Yann Salmon
Depuis mon téléphone ; excusez la brièveté.
|
Ah ok I understand thanks for the clarification. I will check out your MR |
Gittyup records repos by their worktree in the Recent list, which relies on the assumption that the git-dir and the work-tree are in the same path. This is not always the case.
Opening
/tmp/a
in Gittyup does display the adequate work-tree, withtest
as an untracked file.However, this gets recorded as
b
, nota
, in the Recent list. Moreover, opening the repo from that entry in the Recent list gives an error "/tmp/b does not contain a valid git repository", which is true, but irrelevant.The text was updated successfully, but these errors were encountered: