From c43b2da1581769572457d398490a621ae7d43744 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Wed, 14 Oct 2015 13:26:22 -0700 Subject: [PATCH] [website] Support pushing new files In #3421 we created a new folder but it didn't get picked up by the publish script. ``` Untracked files: (use "git add ..." to include in what will be committed) js/ ``` The reason is that `git diff-index --quiet HEAD --` returns 0 for untracked files. But, if we add before, it returns 1. It still returns 0 if we add but there's nothing changed --- website/publish.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/publish.sh b/website/publish.sh index dfb10e7726..7d34e18758 100755 --- a/website/publish.sh +++ b/website/publish.sh @@ -24,8 +24,8 @@ cp -R build/react-native/* ../../react-native-gh-pages/ rm -Rf build/ cd ../../react-native-gh-pages git status +git add -A . if ! git diff-index --quiet HEAD --; then - git add -A . git commit -m "update website" git push origin gh-pages fi