]> git.wh0rd.org - home.git/commitdiff
r: default to current branch (useful for initial repo creation)
authorMike Frysinger <vapier@gentoo.org>
Wed, 26 Jun 2013 22:07:05 +0000 (18:07 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 26 Jun 2013 22:07:05 +0000 (18:07 -0400)
.bin/r

diff --git a/.bin/r b/.bin/r
index 7d4fc61ba03743c8acadbbe31f183cb352d091a7..a025558349b89134a011727a493b79450b25d7b5 100755 (executable)
--- 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