From 68454eab14a22ec7700f7da164e0dbdb9444b157 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sun, 23 May 2010 14:12:54 +0200 Subject: [PATCH] ./all branch: fetch origin before creating a branch, to make sure new branches start at the CURRENT master --- all | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/all b/all index 935a58ae..38b65d5c 100755 --- a/all +++ b/all @@ -302,7 +302,8 @@ case "$cmd" in if [ -n "$srcbranch" ]; then b=$srcbranch else - b="`repobranch "$d"`" + b=origin/"`repobranch "$d"`" + verbose git fetch origin || true fi # TODO do this without pushing verbose git push "$remote" "$b":"$branch" -- 2.39.2