Skip to content

Update working dir - #3759

Merged
rjbou merged 2 commits into
ocaml:masterfrom
rjbou:working-dir
Feb 25, 2019
Merged

rjbou merged 2 commits into
ocaml:masterfrom
rjbou:working-dir

Conversation

@rjbou

@rjbou rjbou commented Feb 22, 2019

Copy link
Copy Markdown
Collaborator

working-dir option didn't copy all local files, just uncomiited changes of version controlled ones, which leads to some rsync errors (if a file is deleted), and not handling new ones.
This PR changes this behavior by copying all current source directory (except _build directory). It may result to some build failure is current source directory is not clean.

@rjbou
rjbou merged commit bfae35a into ocaml:master Feb 25, 2019
Comment thread src/repository/opamVCS.ml
in
let args = [
"--files-from"; (Lazy.force convert_path) stdout_file;
"--exclude"; "_build"; (* tiny clean: exclude _build directory *)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe rsync supports .gitignore files, so a future improvement to this hardcoded _build directory could be adding --filter=":- .gitignore" to the command line.

@rjbou rjbou added this to the 2.1.0 milestone Feb 28, 2019
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