-
-
Notifications
You must be signed in to change notification settings - Fork 5
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 folder being uploaded #73
Comments
Very strange, I haven't heard anyone have that issue, can you run: (describe-variable 'ssh-deploy-exclude-list) And tell me what it's value is. (When your |
I am running into a similar issue. I checked the ssh-deploy-exclude-list variable and it is set to exclude .git and .dir-locals.el but it is still pushing them. |
Same here, did someone find a workaround ? |
What Emacs version are you on? Maybe it is related to that.. |
I'm using: I just checked and I have two ssh-deploy installed: Here is my config file (doom emacs) to specify ssh-deploy variables : |
I think Emacs is a mess when installed via snap in Ubuntu, I tried with Emacs built from source and it was much better. I tried with Emacs
(setq ssh-deploy-root-local "MASKED")
(setq ssh-deploy-root-remote "MASKED")
(setq ssh-deploy-exclude-list '(".*/\.git/" "\.git/" "\.dir-locals\.el"))
(setq ssh-deploy-force-on-explicit-save 0)
(setq ssh-deploy-on-explicit-save 1) In file Created a file in root folder and saved, verified that the file was uploaded to remote host. Working as expected for me |
For my case, I didn't installed via snap, but from source. I'm using the upload module of Doom which is using your package (3.1.16 also) with small configurations (variables and keybinds), but I tried also by installing myself from melpa, with the same problem. My last hope was settings the absolute path for ((nil . (
(ssh-deploy-root-local . "/path/to/local/folder/")
(ssh-deploy-root-remote . "/path/to/remote/folder/")
(ssh-deploy-exclude-list . '("/path/to/local/folder/\.git" "/path/to/local/folder/\.dir-locals\.el"))
(ssh-deploy-async . 1)
(ssh-deploy-async-with-threads . 1)
(ssh-deploy-on-explicit-save . 1)
))) but it gave me this error: Debugger entered--Lisp error: (wrong-type-argument stringp quote)
string-match'"/path/to/remote/folder/.dir-locals.el"
ssh-deploy--file-is-included-p("//path/to/remote/folder/.dir-locals.el" '("/path/to/remote/folder/.git" "/path/to/remote/folder/.dir-locals.el"))
ssh-deploy-upload-handler()
funcall-interactively(ssh-deploy-upload-handler)
call-interactively(ssh-deploy-upload-handler nil nil)
command-execute(ssh-deploy-upload-handler) In the end, I tried several things, with no success, I wonder if there is any problems by letting ssh-deploy syncing the git folder and dir-locals file ? |
Strange, can you describe a scenario step by step how you get the error? You visit a file and execute the command |
I don't mean the |
I put myself on root of my project with dired, there I use Here is my configuration:
Edit: Is there a way to get the callback when using emacs command, it could help ? |
Oh are you trying to upload the entire root folder? You expect that the excluded files should not be deployed? If so I haven't considered that case before |
When looking through the code I see that when uploading a directory the plugin does not exclude files.. I think this should be considered a bug. If you instead do a sync, files should be excluded properly |
Yes, this is exactly what I do. Before I found your package, I usually commited, pushed and pulled on remote server, but this way I had to create a commit every time, this isen't relevant and appropriate for my git historic. |
Under default settings on commit
94b56c
, files under.git
are being uploaded, even though testingssh-deploy--file-is-included-p
on its own returns nil on an example file.The text was updated successfully, but these errors were encountered: