# svn2git question: error: unknown switch `t'

7 messages from 2010-09-20 to 2010-09-21. Participants: nolan.ring@emc.com, Ævar Arnfjörð Bjarmason.
Thread: https://gitlist.dev/t/25169

## nolan.ring@emc.com, 2010-09-20 17:39

Subject: svn2git question: error: unknown switch `t'
Message-ID: <4E10ACF241081344B9702AA8C6440440C5B14FB331@MX01A.corp.emc.com>
URL: https://gitlist.dev/e/4E10ACF241081344B9702AA8C6440440C5B14FB331%40MX01A.corp.emc.com

```
All,

I'm running the command svn2git -v --notags --branches REbranches <URL>

and I'm getting the following:

If you want to create a new branch from this checkout, you may do so
(now or later) by using -b with the checkout command again. Example:
  git checkout -b <new_branch_name>
HEAD is now at 38b1da3... Update NEO targets to point to NeoMain kernel
Running command: git branch -t NeoMain@34 remotes/NeoMain@34
error: unknown switch `t'
usage: git branch [options] [-r | -a] [--merged | --no-merged]
   or: git branch [options] [-l] [-f] <branchname> [<start-point>]
   or: git branch [options] [-r] (-d | -D) <branchname>
   or: git branch [options] (-m | -M) [<oldbranch>] <newbranch>

Generic options
    -v, --verbose         be verbose
    --track               set up tracking mode (see git-pull(1))
    --color               use colored output
    -r                    act on remote-tracking branches
    --contains <commit>   print only branches that contain the commit
    --abbrev[=<n>]        use <n> digits to display SHA-1s

Specific git-branch actions:
    -a                    list both remote-tracking and local branches
    -d                    delete fully merged branch
    -D                    delete branch (even if not merged)
    -m                    move/rename a branch and its reflog
    -M                    move/rename a branch, even if target exists
    -l                    create the branch's reflog
    -f                    force creation (when already exists)
    --no-merged <commit>  print only not merged branches
    --merged <commit>     print only merged branches

Where did the -t come from?  What is this telling me?

Thanks much.

Nolan 

```

## Ævar Arnfjörð Bjarmason, 2010-09-20 17:58

Subject: Re: svn2git question: error: unknown switch `t'
Message-ID: <AANLkTik_ouA-AD+tmGEvvcJeZqVj4Rge=hcoJ5Bqgt-R@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTik_ouA-AD%2BtmGEvvcJeZqVj4Rge%3DhcoJ5Bqgt-R%40mail.gmail.com
In-Reply-To: <4E10ACF241081344B9702AA8C6440440C5B14FB331@MX01A.corp.emc.com>

```
On Mon, Sep 20, 2010 at 17:39,  <nolan.ring@emc.com> wrote:
> Where did the -t come from?  What is this telling me?

git branch supports the -t or --track option. You obviously have too
old a git with too new a svn2git.

```

## nolan.ring@emc.com, 2010-09-20 19:19

Subject: RE: svn2git question: error: unknown switch `t'
Message-ID: <4E10ACF241081344B9702AA8C6440440C5B14FB337@MX01A.corp.emc.com>
URL: https://gitlist.dev/e/4E10ACF241081344B9702AA8C6440440C5B14FB337%40MX01A.corp.emc.com
In-Reply-To: <AANLkTik_ouA-AD+tmGEvvcJeZqVj4Rge=hcoJ5Bqgt-R@mail.gmail.com>

```
Hmmm, guess it wasn't that obvious to me!! :-)

I have 1.6.0.2 installed, which does support the --track option; did a later git support -t as well as --track?

> git --version
git version 1.6.0.2

Is there some way to know what version of git the svn2git I have installed supports?  And any way to get a version of svn2git that supports the one I have.

Thanks for your patience.

Nolan
________________________________________
From: Ævar Arnfjörð Bjarmason [avarab@gmail.com]
Sent: Monday, September 20, 2010 1:58 PM
To: Ring, Nolan
Cc: git@vger.kernel.org
Subject: Re: svn2git question: error: unknown switch `t'

On Mon, Sep 20, 2010 at 17:39,  <nolan.ring@emc.com> wrote:
> Where did the -t come from?  What is this telling me?

git branch supports the -t or --track option. You obviously have too
old a git with too new a svn2git.

```

## Ævar Arnfjörð Bjarmason, 2010-09-20 19:30

Subject: Re: svn2git question: error: unknown switch `t'
Message-ID: <AANLkTi=X3NqcURV8GSmZiq5CbVwikFF5skFt_t6gkSp9@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTi%3DX3NqcURV8GSmZiq5CbVwikFF5skFt_t6gkSp9%40mail.gmail.com
In-Reply-To: <4E10ACF241081344B9702AA8C6440440C5B14FB337@MX01A.corp.emc.com>

```
On Mon, Sep 20, 2010 at 19:19,  <nolan.ring@emc.com> wrote:
> Hmmm, guess it wasn't that obvious to me!! :-)
>
> I have 1.6.0.2 installed, which does support the --track option; did a later git support -t as well as --track?
>
>> git --version
> git version 1.6.0.2
>
> Is there some way to know what version of git the svn2git I have installed supports?  And any way to get a version of svn2git that supports the one I have.

You should just upgrade Git instead, using an old version of a
conversion tool is generally a Bad Idea.

```

## nolan.ring@emc.com, 2010-09-20 19:40

Subject: RE: svn2git question: error: unknown switch `t'
Message-ID: <4E10ACF241081344B9702AA8C6440440C5B14FB33A@MX01A.corp.emc.com>
URL: https://gitlist.dev/e/4E10ACF241081344B9702AA8C6440440C5B14FB33A%40MX01A.corp.emc.com
In-Reply-To: <AANLkTi=X3NqcURV8GSmZiq5CbVwikFF5skFt_t6gkSp9@mail.gmail.com>

```
Thanks for your quick response.

svn2git has alot of pre-requisite software.  Can I just upgrade git and leave the other software at its current version?

Nolan
________________________________________
From: Ævar Arnfjörð Bjarmason [avarab@gmail.com]
Sent: Monday, September 20, 2010 3:30 PM
To: Ring, Nolan
Cc: git@vger.kernel.org
Subject: Re: svn2git question: error: unknown switch `t'

On Mon, Sep 20, 2010 at 19:19,  <nolan.ring@emc.com> wrote:
> Hmmm, guess it wasn't that obvious to me!! :-)
>
> I have 1.6.0.2 installed, which does support the --track option; did a later git support -t as well as --track?
>
>> git --version
> git version 1.6.0.2
>
> Is there some way to know what version of git the svn2git I have installed supports?  And any way to get a version of svn2git that supports the one I have.

You should just upgrade Git instead, using an old version of a
conversion tool is generally a Bad Idea.

```

## nolan.ring@emc.com, 2010-09-21 12:08

Subject: RE: svn2git question: error: unknown switch `t'
Message-ID: <4E10ACF241081344B9702AA8C6440440C5B14FB34F@MX01A.corp.emc.com>
URL: https://gitlist.dev/e/4E10ACF241081344B9702AA8C6440440C5B14FB34F%40MX01A.corp.emc.com
In-Reply-To: <4E10ACF241081344B9702AA8C6440440C5B14FB33A@MX01A.corp.emc.com>

```
At this point I feel like I'm chasing my tail. 

I upgraded git and then started trying to upgrade other software that svn2git requires.  It's been all downhill!

I found rpm 5.2.1 and tried installing it but needed popt.  I found popt and installed it but now need beecrpypt because Python.h is missing.  It looks like I need beecrypt but I *can't* find an appropriate beecrypt for Suse 11.

/bin/sh ../libtool --tag=CC   --mode=compile gcc -m64 -DHAVE_CONFIG_H -I. -I.. -I. -I../include -I/usr/include/python2.6  -I/re/thirdparty_tools/java/linux/jdk1.6.0_02/jre/../include -I/re/thirdparty_tools/java/linux/jdk1.6.0_02/jre/../include/linux -DOPTIMIZE_X86_64  -O2 -DNDEBUG -Wa,--noexecstack -c -o _bc-py.lo _bc-py.c
libtool: compile:  gcc -m64 -DHAVE_CONFIG_H -I. -I.. -I. -I../include -I/usr/include/python2.6 -I/re/thirdparty_tools/java/linux/jdk1.6.0_02/jre/../include -I/re/thirdparty_tools/java/linux/jdk1.6.0_02/jre/../include/linux -DOPTIMIZE_X86_64 -O2 -DNDEBUG -Wa,--noexecstack -c _bc-py.c  -fPIC -DPIC -o .libs/_bc-py.o
_bc-py.c:8:20: error: Python.h: No such file or directory
In file included from _bc-py.c:14:
../include/beecrypt/python/mpw-py.h:12: error: expected specifier-qualifier-list before âPyObject_HEADâ
../include/beecrypt/python/mpw-py.h:20: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âmpw_Typeâ

Am I doing something wrong here?  

Thanks again for any insights.

Nolan

________________________________________
From: git-owner@vger.kernel.org [git-owner@vger.kernel.org] On Behalf Of nolan.ring@emc.com [nolan.ring@emc.com]
Sent: Monday, September 20, 2010 3:40 PM
To: avarab@gmail.com
Cc: git@vger.kernel.org
Subject: RE: svn2git question: error: unknown switch `t'

Thanks for your quick response.

svn2git has alot of pre-requisite software.  Can I just upgrade git and leave the other software at its current version?

Nolan
________________________________________
From: Ævar Arnfjörð Bjarmason [avarab@gmail.com]
Sent: Monday, September 20, 2010 3:30 PM
To: Ring, Nolan
Cc: git@vger.kernel.org
Subject: Re: svn2git question: error: unknown switch `t'

On Mon, Sep 20, 2010 at 19:19,  <nolan.ring@emc.com> wrote:
> Hmmm, guess it wasn't that obvious to me!! :-)
>
> I have 1.6.0.2 installed, which does support the --track option; did a later git support -t as well as --track?
>
>> git --version
> git version 1.6.0.2
>
> Is there some way to know what version of git the svn2git I have installed supports?  And any way to get a version of svn2git that supports the one I have.

You should just upgrade Git instead, using an old version of a
conversion tool is generally a Bad Idea.


```

## Ævar Arnfjörð Bjarmason, 2010-09-21 13:05

Subject: Re: svn2git question: error: unknown switch `t'
Message-ID: <AANLkTikDhzeDmh4k-HOgrGxtyiEzDAAVKn0mrVmA7W_g@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTikDhzeDmh4k-HOgrGxtyiEzDAAVKn0mrVmA7W_g%40mail.gmail.com
In-Reply-To: <4E10ACF241081344B9702AA8C6440440C5B14FB34F@MX01A.corp.emc.com>

```
On Tue, Sep 21, 2010 at 12:08,  <nolan.ring@emc.com> wrote:

> Am I doing something wrong here?
>
> Thanks again for any insights.

You could get the VirtualBox package for SuSE, install Debian, and run
svn2git there.

```
