From 12d183c54893ca96c3b432c5fbce7e71bfd1bb5e Mon Sep 17 00:00:00 2001 From: Victor Häggqvist Date: Sun, 17 Jan 2016 00:05:26 +0100 Subject: fix gh-pages script --- push-gh-pages.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'push-gh-pages.sh') 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 git@github.com:victorhaggqvist/touch-imagelightbox.git --branch gh-pages gh-pages +rm -rf gh-pages +git clone --depth=1 git@github.com: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 -- cgit v1.2.3