我在Emacs 25.1.1上遇到Magit问题。当我尝试在git目录上执行magit-status时,出现以下错误: apply:设置当前目录:无效参数,c:/ configfiles ^ M /
我不明白为什么ctrl-m会被追加到目录中。当我在cygwin-shell上检查相同内容时,没有看到此问题。
预先感谢您的帮助。
BackTrace如下:
Debugger entered--Lisp error: (file-error "Setting current directory" "Invalid argument" "c:/users/evijyaj/DropBox/MANA/emulator\015/")
call-process("C:/cygwin64/usr/libexec/git-core/git.exe" nil (t nil) nil "--no-pager" "--literal-pathspecs" "-c" "core.preloadindex=true" "-c" "log.showSignature=false" "-c" "i18n.logOutputEncoding=UTF-8" "config" "--list" "-z")
apply(call-process "C:/cygwin64/usr/libexec/git-core/git.exe" nil (t nil) nil ("--no-pager" "--literal-pathspecs" "-c" "core.preloadindex=true" "-c" "log.showSignature=false" "-c" "i18n.logOutputEncoding=UTF-8" "config" "--list" "-z"))
process-file("C:/cygwin64/usr/libexec/git-core/git.exe" nil (t nil) nil "--no-pager" "--literal-pathspecs" "-c" "core.preloadindex=true" "-c" "log.showSignature=false" "-c" "i18n.logOutputEncoding=UTF-8" "config" "--list" "-z")
apply(process-file "C:/cygwin64/usr/libexec/git-core/git.exe" nil (t nil) nil ("--no-pager" "--literal-pathspecs" "-c" "core.preloadindex=true" "-c" "log.showSignature=false" "-c" "i18n.logOutputEncoding=UTF-8" "config" "--list" "-z"))
magit-process-file("C:/cygwin64/usr/libexec/git-core/git.exe" nil (t nil) nil "--no-pager" "--literal-pathspecs" "-c" "core.preloadindex=true" "-c" "log.showSignature=false" "-c" "i18n.logOutputEncoding=UTF-8" "config" "--list" "-z")
apply(magit-process-file "C:/cygwin64/usr/libexec/git-core/git.exe" nil (t nil) nil ("--no-pager" "--literal-pathspecs" "-c" "core.preloadindex=true" "-c" "log.showSignature=false" "-c" "i18n.logOutputEncoding=UTF-8" "config" "--list" "-z"))
magit-git-insert("config" "--list" "-z")
apply(magit-git-insert ("config" "--list" "-z"))
magit-git-items("config" "--list" "-z")
magit-config-get-from-cached-list("magit.extension")
magit-get-all("magit.extension")
magit-load-config-extensions()
run-hooks(change-major-mode-after-body-hook special-mode-hook magit-mode-hook magit-status-mode-hook)
apply(run-hooks (change-major-mode-after-body-hook special-mode-hook magit-mode-hook magit-status-mode-hook))
run-mode-hooks(magit-status-mode-hook)
magit-status-mode()
magit-mode-setup-internal(magit-status-mode nil)
magit-mode-setup(magit-status-mode)
magit-status-internal("c:/users/evijyaj/DropBox/MANA/emulator/src/ericsson/appexamples/handoverAgent/")
magit(nil ((1 . 6) (("c:/users/evijyaj/DropBox/MANA/emulator\015/" . magit-toplevel)) (("c:/users/evijyaj/DropBox/MANA/" "rev-parse" "--git-dir")) (("c:/users/evijyaj/DropBox/MANA/" "rev-parse" "--show-toplevel")) (("c:/users/evijyaj/DropBox/MANA/emulator/src/ericsson/appexamples/handoverAgent/" . magit-toplevel) . "c:/users/evijyaj/DropBox/MANA/emulator\015/") (("c:/users/evijyaj/DropBox/MANA/emulator/src/ericsson/appexamples/handoverAgent/" "rev-parse" "--show-toplevel") . "/cygdrive/c/users/evijyaj/DropBox/MANA/emulator\015")))
funcall-interactively(magit nil ((1 . 6) (("c:/users/evijyaj/DropBox/MANA/emulator\015/" . magit-toplevel)) (("c:/users/evijyaj/DropBox/MANA/" "rev-parse" "--git-dir")) (("c:/users/evijyaj/DropBox/MANA/" "rev-parse" "--show-toplevel")) (("c:/users/evijyaj/DropBox/MANA/emulator/src/ericsson/appexamples/handoverAgent/" . magit-toplevel) . "c:/users/evijyaj/DropBox/MANA/emulator\015/") (("c:/users/evijyaj/DropBox/MANA/emulator/src/ericsson/appexamples/handoverAgent/" "rev-parse" "--show-toplevel") . "/cygdrive/c/users/evijyaj/DropBox/MANA/emulator\015")))
call-interactively(magit record nil)
command-execute(magit record)
#f(compiled-function (cmd) #<bytecode 0x2bdeeb5>)("magit")
ivy-call()