diff options
author | Victor Häggqvist <[email protected]> | 2016-01-17 00:05:26 +0100 |
---|---|---|
committer | Victor Häggqvist <[email protected]> | 2016-01-17 00:05:26 +0100 |
commit | 12d183c54893ca96c3b432c5fbce7e71bfd1bb5e (patch) | |
tree | 88094cb75559f31e10a8621f36514a8d8a17268d | |
parent | 7155e6074e766392a31b9bd4daded85c6a8a80a1 (diff) |
fix gh-pages script
-rwxr-xr-x | push-gh-pages.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/push-gh-pages.sh b/push-gh-pages.sh index 04ee2fb..6c0705a 100755 --- a/push-gh-pages.sh +++ b/push-gh-pages.sh @@ -1,7 +1,10 @@ #!/bin/bash -git clone --depth=0 [email protected]:victorhaggqvist/touch-imagelightbox.git --branch gh-pages gh-pages +rm -rf gh-pages +git clone --depth=1 [email protected]:victorhaggqvist/touch-imagelightbox.git --branch gh-pages gh-pages rm -rf gh-pages/* cp demo/* gh-pages +pushd gh-pages git add . git commit -m "$(git rev-parse --git-dir=../.git --short HEAD)" -git push origin gh-pages +git push origin gh-pages --force +popd |