Permalink
Browse files

Escape brackets correctly

  • Loading branch information...
1 parent 9a1b42e commit 78f962a46eccb9b369241a9ce45e68be6362bf28 @jamiew committed Jun 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 push
View
2 push
@@ -26,7 +26,7 @@ fi
# Parse relevant commit refs and let user know what we did
# 1st-time push to new branch gets special treatment
-if echo $push | grep "[new branch]" >/dev/null; then
+if echo $push | grep "\[new branch\]" >/dev/null; then
refs="master...$branch"
echo "Pushed new branch '$branch' remotely"
else

0 comments on commit 78f962a

Please sign in to comment.