chiark / gitweb /
Fix more commands to run correctly in subdirectories
authorCatalin Marinas <catalin.marinas@gmail.com>
Wed, 7 Nov 2007 22:12:24 +0000 (22:12 +0000)
committerCatalin Marinas <catalin.marinas@gmail.com>
Wed, 7 Nov 2007 22:12:24 +0000 (22:12 +0000)
commit7b601c9e979785f3521395a4f8b2abbe0b6408eb
tree1150cfea662065e61f9f71715db702843e2ddb31
parent42cd003ef2a190ec7f32068676d831ef6478c39f
Fix more commands to run correctly in subdirectories

Raised recently with bug #10276, commands manipulating patches might
fail to run correctly (even losing data) in subdirectories, mainly
because of git-apply (see the bug log for explanation). This patch
forces all the patch-modifying commands to go to the top level
directory before acting.

In addition to the above, ot also fixes the resolved and export
commands.

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
18 files changed:
stgit/commands/assimilate.py
stgit/commands/branch.py
stgit/commands/clean.py
stgit/commands/commit.py
stgit/commands/delete.py
stgit/commands/edit.py
stgit/commands/export.py
stgit/commands/float.py
stgit/commands/goto.py
stgit/commands/new.py
stgit/commands/pick.py
stgit/commands/pop.py
stgit/commands/pull.py
stgit/commands/rebase.py
stgit/commands/resolved.py
stgit/commands/sink.py
stgit/commands/sync.py
stgit/commands/uncommit.py