chiark / gitweb /
Make "stg push" subdirectory safe
authorKarl Hasselström <kha@treskal.com>
Sun, 7 Oct 2007 18:56:05 +0000 (20:56 +0200)
committerKarl Hasselström <kha@treskal.com>
Sun, 7 Oct 2007 22:14:11 +0000 (00:14 +0200)
commit89d889f42f6b0081c5e9e80b8b470d6770ff1e82
tree2d32726cffdb926126cbe835c487da9462f76682
parent86795a31727823391e412417010eccbfb6cbd6f9
Make "stg push" subdirectory safe

Make "stg push" subdirectory safe by letting it internally cd up to
the top of the worktree. This is possibly not the best long-term fix;
one could argue that the push subroutine should instead be safe to run
from a subdirectory. However, pushing from a subdirectory currently
erases the parts of a patch that doesn't touch that subdirectory, and
that has to be fixed.

Signed-off-by: Karl Hasselström <kha@treskal.com>
stgit/commands/push.py
t/t1205-push-subdir.sh