projects
/
web.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
track HTML changes in git
[web.git]
/
research
/
upload.sh
diff --git
a/research/upload.sh
b/research/upload.sh
index 3a528b5145d7db7928cc9d730d8afe3e0587cd4d..6832be43c8699654210aaa60026e2da4cac1a5dd 100755
(executable)
--- a/
research/upload.sh
+++ b/
research/upload.sh
@@
-3,4
+3,11
@@
cd "$(dirname "$0")"
jekyll build
cd _site
-rsync ./ mpi-contact:public_html/ -aP
+
+git add .
+if ! git diff --cached; then
+ # There are changes
+ git commit -m "site upload"
+fi
+
+rsync ./ mpi-contact:public_html/ -aP --exclude .git