git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] stgit branch renaming into new dir crashes
@ 2006-06-13 21:40 Yann Dirson
  2006-06-16 12:06 ` Catalin Marinas
  0 siblings, 1 reply; 3+ messages in thread
From: Yann Dirson @ 2006-06-13 21:40 UTC (permalink / raw)
  To: Catalin Marinas; +Cc: GIT list

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/>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-06-17 21:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-13 21:40 [BUG] stgit branch renaming into new dir crashes Yann Dirson
2006-06-16 12:06 ` Catalin Marinas
2006-06-17 21:31   ` Yann Dirson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).