org-page icon indicating copy to clipboard operation
org-page copied to clipboard

建议不能调用外部命令时,能给出错误提示,比如找不到git

Open ccsheller opened this issue 9 years ago • 2 comments

我装git(windows)时并没有把git放到系统环境变量中,使用的是git自带的shell。 这样emacs找不到git,但是org-page不能给出提示,其执行后,给出Publication finished:************的提示,然后只看到生成了media文件夹。

ccsheller avatar Dec 10 '15 05:12 ccsheller

嗯,这是一个问题,后续我会在执行publish之前加一下判定。

sillykelvin avatar Dec 11 '15 09:12 sillykelvin

对了,最好直接将git命令的返回结果暴露出来,因为有时候压根就不知道错在哪里,在linux上还好,问题不大,在windows上问题就很大了。 我在配置的时候遇到过这样的一个问题,执行op/new-repository命令的时候老是会报一个错误Failed to commit changes on current branch of repository,这个东西很离奇的,我压根不知道怎么改,后来直接单步执行,发现,在执行git commit命令的时候就已经出错了: Please tell me who you are. Run git config --global user.email "[email protected]" git config --global user.name "Your name" to set your account's default identity.

Yihulee avatar Jan 31 '16 05:01 Yihulee