diff --git a/update_index.sh b/update_index.sh
index 7ac56673129beed703dd3b864df5e2770f81ffde..388ae9c2f478d83c5ea4b847d9d9b79b07caef6d 100755
--- a/update_index.sh
+++ b/update_index.sh
@@ -1,5 +1,5 @@
+git pull
 grip README.md --export index.html
 git add index.html
 git commit -m "update index"
-git pull
 git push
\ No newline at end of file