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

Filemode problem causes problems with git status, commit #5

Open
wolandscat opened this issue May 30, 2016 · 0 comments
Open

Filemode problem causes problems with git status, commit #5

wolandscat opened this issue May 30, 2016 · 0 comments
Labels

Comments

@wolandscat
Copy link
Member

When git status, git commit and some other git commands are called, the filemode set on files can be a problem on some file systems, and/or combinations of tools and how a checkout was done.

One known case is if a git repo was created with cygwin git, and later visited with Windows git. See git-config man page (search 'filemode').

The problem is also described here and here on Stackoverflow.

A possible fix to apply to adl-tools is:

  • add in a check on initialisation that detects if there is a file-mode problem (what check?); this may or may not be possible since it can be on a per-repo basis.
  • change commands like git status become git -c core.filemode=false status. Note this would only ever be needed on a Windows machine, but should not cause problems elsewhere.

At the moment, we'll monitor the problem in the user community and try to ascertain more about when it occurs.

@wolandscat wolandscat added the bug label May 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant