Skip to content
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

Make The Code Robust Against Usage Of The "Save Project As" command #16

Closed
maarzt opened this issue Mar 22, 2024 · 0 comments · Fixed by #18
Closed

Make The Code Robust Against Usage Of The "Save Project As" command #16

maarzt opened this issue Mar 22, 2024 · 0 comments · Fixed by #18

Comments

@maarzt
Copy link
Collaborator

maarzt commented Mar 22, 2024

The code (MastodonGitRepository) assumes in many places (save or relaodFromDisk) that projectModel.getProject().getProjectRoot() does not change and always points to the mastodon.project subfolder of the git repo. That is not the case. The only thing necessary to brake the assumption is to run "Save Project As" when using the Mastodon git tools.

The code needs to become more robust in this regard. ReloadfromDisk and save should always use the fixed path into the git repository and not rely on projectModel.getProject().getProjectRoot().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant