Skip to content
Browse files

fix script pull_and_ghpimport.sh

  • Loading branch information...
1 parent 91b4086 commit c054927d0c79ff029707f6e2da70aa6d2a551fc5 @bbinet committed Apr 28, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 pull_and_ghpimport.sh
View
6 pull_and_ghpimport.sh
@@ -1,9 +1,9 @@
#!/bin/bash
-oldhash=$(git rev-parse refs/heads/gh-pages)
+oldhash=$(git rev-parse HEAD)
git pull origin master
-newhash=$(git rev-parse refs/heads/gh-pages)
-if [ $oldhash = $newhash ]; then
+newhash=$(git rev-parse HEAD)
+if [ "$oldhash" == "$newhash" ]; then
echo "Nothing to do."
else
echo "Update gh-pages branch and push to github."

0 comments on commit c054927

Please sign in to comment.
Something went wrong with that request. Please try again.