summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Häggqvist <[email protected]>2016-01-17 00:05:26 +0100
committerVictor Häggqvist <[email protected]>2016-01-17 00:05:26 +0100
commit12d183c54893ca96c3b432c5fbce7e71bfd1bb5e (patch)
tree88094cb75559f31e10a8621f36514a8d8a17268d
parent7155e6074e766392a31b9bd4daded85c6a8a80a1 (diff)
fix gh-pages script
-rwxr-xr-xpush-gh-pages.sh7
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