Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@EmptyEmeraldTablet

Description

@EmptyEmeraldTablet

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions