From 7dae893bb1486087221dc9fc25fa81c0c4c3fc3c Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 12 Jun 2012 10:14:41 -0400 Subject: [PATCH] update repo stuff --- .bin/cros-repo | 3 ++- .bin/r | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.bin/cros-repo b/.bin/cros-repo index 711b8d3..b048f6c 100755 --- a/.bin/cros-repo +++ b/.bin/cros-repo @@ -40,7 +40,8 @@ while [[ $# -gt 0 ]] ; do shift ;; -r) - REF=$(realpath "$2") + + REF=$(realpath "${2:-$(echo ~/chromiumos)}") shift ;; *) diff --git a/.bin/r b/.bin/r index d204eb1..469b968 100755 --- a/.bin/r +++ b/.bin/r @@ -20,7 +20,7 @@ rebase) if [[ $1 == "all" ]] ; then shift if [[ $# -eq 0 ]] ; then - exec r forall -p -c 'r rb all .' + exec r forall -p -c 'r rb all .'