update git status processing (git output changed with 1.9 version)
diff --git a/publish.sh b/publish.sh
index a0397b3..315b9fd 100755
--- a/publish.sh
+++ b/publish.sh
@@ -117,8 +117,10 @@
     # switch to desired branch
     ${GIT_EXEC} checkout ${desired_branch}
     if [ "$?" = "0" ] ; then
-       # parse status of repo for current branch
-       current_branch=`${GIT_EXEC} status | grep -m1 "#" | cut -s -d' ' -f4`
+       # parse status of repo for current branch (pre-git 1.9)
+       #current_branch=`${GIT_EXEC} status | grep -m1 "#" | cut -s -d' ' -f4`
+       # parse status of repo for current branch (git 1.9)
+       current_branch=`${GIT_EXEC} status | grep -m1 "branch" | cut -s -d' ' -f3`
        if [ "${DEBUG}" = "true" ] ; then
           echo "Now on '${current_branch}' in '${local_repo}'"
           echo "Desired branch is '${desired_branch}'."