I'm having a little trouble with magit and the default-directory
variable.
When calling M-x magit-status
, an exception is thrown - Setting current directory: No such file or directory, /path/to/git/repo/^M/
. I.e. there is an extra carriage return character inserted on the end of the path as though it were another directory level.
For the avoidance of doubt, this is not about carriage returns in a repository file, but rather the path to the repository. Emacs is running on windows, with git for windows.