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

"Operation not permitted Error" due to special characters in the repo directory or files #727

Open
mamashende opened this issue Oct 11, 2024 · 0 comments
Assignees

Comments

@mamashende
Copy link

mamashende commented Oct 11, 2024

Describe the bug
Encountered an "Operation not permitted Error" due to special characters in the repo directory or files. While attempting to pull a repository containing a '?' in one of the directory names, the "Operation not permitted Error" occurred, similar to the behavior reported in #708 (comment). It only errors out after it's started indexing the repo.
The repository in question serves the purpose of automatically backing up and syncing my study notes written in Markdown on my Debian PC. Recently, I unintentionally included a '?' in the directory name while renaming it. This change was automatically committed and pushed to my GitHub repository(In another words,Git could handle this kind of exception). Due to my busy schedule that day, I overlooked the presence of '?'.

The following day, while trying to sync my study notes on my phone using MGit, the "Operation not permitted Error" occurred. Upon removing the '?', everything returned to normal.

While using special characters in the repository directory or files is discouraged, is there a more robust way to handle such abnormal exceptions?

To Reproduce
Steps to reproduce the behavior:

1.Using MGit to clone the test repository to replicate the issue: https://github.com/mamashende/test_repo
2. Observe the "Operation not permitted Error" when attempting to clone the repository using MGit.
Screenshot_2024-10-11-09-08-13-610_com.manichord.mgit-edit.jpg

Smartphone (please complete the following information):

  • Device: Redmi K40
  • OS: Android 13
  • App Version: 1.7.0
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

2 participants