git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Yann Dirson <ydirson@altern.org>
To: Catalin Marinas <catalin.marinas@gmail.com>
Cc: GIT list <git@vger.kernel.org>
Subject: [BUG] stgit branch renaming into new dir crashes
Date: Tue, 13 Jun 2006 23:40:53 +0200	[thread overview]
Message-ID: <20060613214053.GD7766@nowhere.earth> (raw)

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

             reply	other threads:[~2006-06-13 21:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-13 21:40 Yann Dirson [this message]
2006-06-16 12:06 ` [BUG] stgit branch renaming into new dir crashes Catalin Marinas
2006-06-17 21:31   ` Yann Dirson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060613214053.GD7766@nowhere.earth \
    --to=ydirson@altern.org \
    --cc=catalin.marinas@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).