From 8e41af9432562cb00c0d87801af370ce89435b2b Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 26 Jun 2013 18:07:05 -0400 Subject: [PATCH] r: default to current branch (useful for initial repo creation) --- .bin/r | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2