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

set chmod flag by default on Windows #29

Merged
merged 4 commits into from
Dec 26, 2014

Conversation

jbuiss0n
Copy link
Contributor

In response to this issue

@jedrichards
Copy link
Owner

Aha, that looks great, thanks.

Do you think its worth putting a check in there to see if there's already a --chmod=XXX arg in the array, and only using this default if there isn't? That way we won't change behaviour for someone using Windows and setting chmod to their own preference?

@jbuiss0n
Copy link
Contributor Author

Yes you're totally right !

I was going to write a unit test to validate this feature, but a bdd test looks not very relevant, and a true unit test was going to import to many dependencies, don't you think?

Thanks for your availability !

@jedrichards
Copy link
Owner

In some of the tests we're passing through the noExec flag to stop rsync actually executing, and then asserting that the resulting command string is what we expect it to be. If you wanted to write a test for this you could do something similar?

https://github.com/jedrichards/rsyncwrapper/blob/master/tests/remote-src.js

@jbuiss0n
Copy link
Contributor Author

Ho yes, it seems good, i'm on it.

Edit: I'll not be able to end it now, i hope to have time during this WE :)

@jbuiss0n
Copy link
Contributor Author

It should now be alright.
Thanks a lot for your help !

@jedrichards
Copy link
Owner

Perfect, will check and merge soon (heading home for Christmas right now) ...

jedrichards added a commit that referenced this pull request Dec 26, 2014
set chmod flag by default on Windows
@jedrichards jedrichards merged commit 6c7581e into jedrichards:master Dec 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants