Skip to content

Commit

Permalink
fix doc generation to include deleted files
Browse files Browse the repository at this point in the history
motivation: in git 2.0 deleted files are ignored unless --all is specified

```
warning: You ran 'git add' with neither '-A (--all)' or '--ignore-removal',
whose behaviour will change in Git 2.0 with respect to paths you removed.
Paths like 'docs/current/NIOOpenSSL/Classes.html' that are
removed from your working tree are ignored with this version of Git.
```

changes: use git add -all docs to includes removeals
  • Loading branch information
tomerd committed Jan 31, 2018
1 parent 07ff340 commit a4b9862
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ if [[ $CI == true ]]; then
git checkout gh-pages
rm -rf docs/current
cp -r docs/$version docs/current
git add docs
git add --all docs
echo '<html><head><meta http-equiv="refresh" content="0; url=docs/current/NIO/index.html" /></head></html>' > index.html
git add index.html
changes=$(git diff-index --name-only HEAD)
Expand Down

0 comments on commit a4b9862

Please sign in to comment.