From: Bert Wesarg Date: Tue, 12 May 2009 08:55:50 GMT Subject: Re: [PATCH] topgit tg push feature Message-ID: <36ca99e90905120155x1954bdf2n2cd015dd0c28af3c@mail.gmail.com> In-Reply-To: <20090512075413.GA7764@gmx.de> On Tue, May 12, 2009 at 09:54, Marc Weber wrote: >>That was my intention my asking for the -r option. The -r option is to >>'tg' not a tg-command. And it's still not addressed. > Bert: You're wrong: > > tg.sh contains: > >  base_remote="$(git config topgit.remote 2>/dev/null)" || : > >  [...] > >  if [ "$1" = "-r" ]; then >          shift >          if [ -z "$1" ]; then >                  echo "Option -r requires an argument." >&2 >                  do_help >                  exit 1 >          fi >          base_remote="$1"; shift >          tg="$tg -r $base_remote" >  fi > > So base_remote is set by config first and then overwritten by the first > -r flag. my remotes is initialised with that -r flag. Ahh, thanks for the pointer, I haven't seen this line. Unfortunately I haven't tested it yet. But I'm looking forward to use it. Bert > > Marc Weber