chiark / gitweb /
Make "stg refresh" subdirectory safe
authorKarl Hasselström <kha@treskal.com>
Sun, 7 Oct 2007 22:14:11 +0000 (00:14 +0200)
committerKarl Hasselström <kha@treskal.com>
Sun, 7 Oct 2007 22:14:11 +0000 (00:14 +0200)
commit2299c463794f214b750ecc33e24779243ddc5aff
treee3c56a50779bc4f4c16a63d8ba3e5a14da8e2110
parent78384a2ccda3bd6763d179b3381ff5fcd90c6a5f
Make "stg refresh" subdirectory safe

Make "stg refresh" 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 refresh subroutine should instead be safe to
run from a subdirectory. However, refreshing from a subdirectory
currently only refreshes changes that are in the index, and not
changes in the working directory, and that has to be fixed.

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