From: Mike Frysinger Date: Wed, 26 Jun 2013 22:07:05 +0000 (-0400) Subject: r: default to current branch (useful for initial repo creation) X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=8e41af9432562cb00c0d87801af370ce89435b2b;p=home.git r: default to current branch (useful for initial repo creation) --- diff --git a/.bin/r b/.bin/r index 7d4fc61..a025558 100755 --- a/.bin/r +++ b/.bin/r @@ -186,7 +186,8 @@ g-push) fi branch=${branch#refs/heads/} if ! remote_branch=$(g cfg --get "branch.${branch}.merge") ; then - err "could not figure out remote branch" + echo "could not figure out remote branch; using ${branch}" + remote_branch=${branch} fi if ! remote=$(g cfg --get "branch.${branch}.remote") ; then for remote in cros-internal cros origin ; do