# [BUG] stgit branch renaming into new dir crashes

3 messages from 2006-06-13 to 2006-06-17. Participants: Yann Dirson, Catalin Marinas.
Thread: https://gitlist.dev/t/4502

## Yann Dirson, 2006-06-13 21:40

Subject: [BUG] stgit branch renaming into new dir crashes
Message-ID: <20060613214053.GD7766@nowhere.earth>
URL: https://gitlist.dev/e/20060613214053.GD7766%40nowhere.earth

```
When trying to rename a branch to a name including a slash, there is
no explicit creation of leading dirs, and stgit crashes:

$ stg branch -r multitag dev/multitag
Traceback (most recent call last):
  File "/usr/bin/stg", line 43, in ?
    main()
  File "/usr/lib/python2.3/site-packages/stgit/main.py", line 187, in main
    command.func(parser, options, args)
  File "/usr/lib/python2.3/site-packages/stgit/commands/branch.py", line 214, in func
    stack.Series(args[0]).rename(args[1])
  File "/usr/lib/python2.3/site-packages/stgit/stack.py", line 497, in rename
    os.rename(self.__series_dir, to_stack.__series_dir)
OSError: [Errno 2] No such file or directory


-- 
Yann Dirson    <ydirson@altern.org> |
Debian-related: <dirson@debian.org> |   Support Debian GNU/Linux:
                                    |  Freedom, Power, Stability, Gratis
     http://ydirson.free.fr/        | Check <http://www.debian.org/>

```

## Catalin Marinas, 2006-06-16 12:06

Subject: Re: [BUG] stgit branch renaming into new dir crashes
Message-ID: <b0943d9e0606160506g23179531v7921b67ac0e0aa0d@mail.gmail.com>
URL: https://gitlist.dev/e/b0943d9e0606160506g23179531v7921b67ac0e0aa0d%40mail.gmail.com
In-Reply-To: <20060613214053.GD7766@nowhere.earth>

```
On 13/06/06, Yann Dirson <ydirson@altern.org> wrote:
> When trying to rename a branch to a name including a slash, there is
> no explicit creation of leading dirs, and stgit crashes:
>
> $ stg branch -r multitag dev/multitag
> Traceback (most recent call last):
[...]

What version of StGIT are you using? It seems to be OK with 0.10.

-- 
Catalin

```

## Yann Dirson, 2006-06-17 21:31

Subject: Re: [BUG] stgit branch renaming into new dir crashes
Message-ID: <20060617213120.GV1297@nowhere.earth>
URL: https://gitlist.dev/e/20060617213120.GV1297%40nowhere.earth
In-Reply-To: <b0943d9e0606160506g23179531v7921b67ac0e0aa0d@mail.gmail.com>

```
On Fri, Jun 16, 2006 at 01:06:56PM +0100, Catalin Marinas wrote:
> On 13/06/06, Yann Dirson <ydirson@altern.org> wrote:
> >When trying to rename a branch to a name including a slash, there is
> >no explicit creation of leading dirs, and stgit crashes:
> >
> >$ stg branch -r multitag dev/multitag
> >Traceback (most recent call last):
> [...]
> 
> What version of StGIT are you using? It seems to be OK with 0.10.

Right, that was with 0.9, and works perfectly with 0.10.  Relying too
much on /usr/bin/ ... :)

Best regards,
-- 
Yann Dirson    <ydirson@altern.org> |
Debian-related: <dirson@debian.org> |   Support Debian GNU/Linux:
                                    |  Freedom, Power, Stability, Gratis
     http://ydirson.free.fr/        | Check <http://www.debian.org/>

```
