Wrong upload path if remote path doesn't end with "/" #10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When setting the variable
ssh-deploy-root-localto a string that doesn't end with/, the functionssh-deploy--get-relative-pathreturns an incorrect path. This is because that function usesreplace-regexp-in-stringand that regular expression will return the match starting with a/. Then, the functionexpand-file-name(in line 1148 of ssh-deploy.el) will incorrectly think that it's working with an absolute path and will return the path as given.This is something that would trigger this problem:
Note that in the last example
ssh-deploy-root-localdoesn't end with a/. Therefore, with that configuration, when deploying something, the deployed file will be incorrectly tried to be placed in the root directory.