Permalink
Browse files

Make sure the file actually exists (it doesn't with explain-only mode).

  • Loading branch information...
1 parent 5f309a9 commit df3b0130ea05cf12c1a2842461603f93a356a173 Brian Donovan committed Oct 9, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/git-review
View
@@ -202,7 +202,7 @@ pushReview() {
git push $change_args ||
die "Could not push your changes for review. Perhaps you need to update first?"
- git_push_output=$(cat $GIT_OUTPUT_FILE)
+ git_push_output=$(test -f $GIT_OUTPUT_FILE && cat $GIT_OUTPUT_FILE)
if [ "$CURRENT" = "$TRACK" ]; then
git reset --hard $REMOTE/$TRACK ||

0 comments on commit df3b013

Please sign in to comment.