emacsorphanage / org-page

[INACTIVE] A static site generator based on Emacs and org mode.
673 stars 99 forks source link

git-push error using the package on windows #154

Open shelper opened 8 years ago

shelper commented 8 years ago

i dont know if i am the first one experiencing this issue, but i followed the steps strictly here, but could not make it work on windows. system.i have the error below

Debugger entered--Lisp error: (error "Failed to change branch to 'source' of repository > > 'c:/Users/zyuan/develop/shelper.github.io/'.") signal(error ("Failed to change branch to 'source' of repository 'c:/Users/zyuan/develop/shelper.github.io/'.")) error("Failed to change branch to '%s' of repository '%s'." "source" "c:/Users/zyuan/develop/shelper.github.io/") op/git-change-branch("c:/Users/zyuan/develop/shelper.github.io" "source") op/do-publication(t nil nil t t) call-interactively(op/do-publication record nil) command-execute(op/do-publication record) helm-M-x(nil "op/do-publication") call-interactively(helm-M-x nil nil) command-execute(helm-M-x)

so i digged into the code a little bit, i found it is because i cannot run shell command git push origin master:master, i have an error saying:

'exec' is not recognized as an internal or external command, operable program or batch file. ssh_exchange_identification: Connection closed by remote host fatal: Could not read from remote repository.

it is so strange , and i actually can run shell command git status, i can do git push origin master:mater in a terminal, i just cannot do git push origin master:master in emacs through shell-command......

shelper commented 8 years ago

under windows, another strange thing is that i could not find the .op-tmp folder in my user folder, moreover, if i manually mkdir .op-tmp, after run op/do-publication, the folder will be gone(deleted)....

sillykelvin commented 8 years ago

error("Failed to change branch to '%s' of repository '%s'." "source" "c:/Users/zyuan/develop/shelper.github.io/") op/git-change-branch("c:/Users/zyuan/develop/shelper.github.io" "source")

The error is not about pushing, org-page failed to change branch, maybe you have files not committed on that branch, commit/stash your changes and try again.

sillykelvin commented 8 years ago

.op-tmp folder will only be generated during publication, and it will be deleted after publication.