Permalink
Browse files

Enumerate heads on origin remote.

  • Loading branch information...
1 parent 6f44cf6 commit 22b9128897cfb4190509a9ec3a3ff881f6169d4b @rubenv committed Jan 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/deploy.sh
View
@@ -56,7 +56,7 @@ if [ -d "node_modules" ]; then
fi
fi
-if ! git ls-remote -q --heads | grep -q refs/heads/$1; then
+if ! git ls-remote -q --heads origin | grep -q refs/heads/$1; then
print_prompt "No $1 branch exists, would you like to create it?"
read
if [ "$REPLY" == "" ] || [ $REPLY == "y" ] || [ $REPLY == "Y" ]; then

0 comments on commit 22b9128

Please sign in to comment.