Commit c9a6cdb3 authored by Jason Karns's avatar Jason Karns
Browse files

Ensure current branch pushes to matching on remote

`git push <remote> HEAD` is documented to push current branch to
same-named branch on the remote
parent 28826198
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ rm -f "${formula}.bak"
git commit -m "${brew_name} ${version#v}" -- "$formula"
# hackish way of getting the git remote name for user's fork
fork_remote="$(hub fork 2>&1 | grep -oE 'remote:? \S+' | tail -1 | awk '{print $2}')"
git push -u "$fork_remote" "$branch"
git push -u "$fork_remote" HEAD
hub pull-request -m "${brew_name} ${version#v}"

git checkout -q -