fixed script to fetch and then pull when there are no local commits