Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git-push error using the package on windows #154

Open
shelper opened this issue Nov 30, 2015 · 3 comments
Open

git-push error using the package on windows #154

shelper opened this issue Nov 30, 2015 · 3 comments

Comments

@shelper
Copy link

shelper commented Nov 30, 2015

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
Copy link
Author

shelper commented Nov 30, 2015

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
Copy link
Collaborator

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants