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

Sapling operations abort when trying to access updated submodule #879

Open
murtlatif opened this issue Apr 18, 2024 · 0 comments
Open

Sapling operations abort when trying to access updated submodule #879

murtlatif opened this issue Apr 18, 2024 · 0 comments

Comments

@murtlatif
Copy link

I have a project structure that looks like this:

my_project/
├─ my_submodule/
├─ other_code/

Where my_submodule is a submodule pointing to another one of my own repositories. Note that my_submodule is a renamed submodule, so the actual repository name is my_real_submodule, and I've aliased it as my_submodule when I initialized it.

When I update and push my_submodule, I see that the folder has changed in sl status:

$ sl status
M my_submodule

However, if I try to do anything that requires reading the actual contents of the "file" (since it's treated as a file IIUC), then sapling fails.

$ sl commit
abort: C:\path\to\submodule: Access is denied
$ sl diff
abort: C:\path\to\submodule: Access is denied

Trying to view changes on ISL (though, I am not surprised this one errors):

The editor could not be opened due to an unexpected error: Unable to read file 'C:\path\to\submodule' (Error: Unable to read file 'C:\path\to\submodule' that is actually a directory)

I assume that the change for this submodule is updating the hash that the directory is pointing to in the submodule repo. The issue is that I want to be able to commit this change but I cannot commit it since the sapling operations abort when trying to work with the submodule change. I can revert the change, but it will point the submodule back to an older hash which I do not want.


Sapling version: Sapling 0.2.20230523-092610+f12b7eee
OS: Windows

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

No branches or pull requests

1 participant