Skip to main content
2 of 3
deleted 4 characters in body
Stefan
  • 26.7k
  • 3
  • 52
  • 88

Extra carriage-return on magit path

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.