chiark / gitweb /
Fix more commands to run correctly in subdirectories
[stgit] / stgit / commands / edit.py
index 89d534a9971d4ec7a56af53beda41942d983c16a..a4d8f963f2a288169ecb326a1f4b6f899c32fac3 100644 (file)
@@ -57,7 +57,7 @@ rejected patch is stored in the .stgit-failed.patch file (and also in
 these files using the '--file' and '--diff' options.
 """
 
-directory = DirectoryHasRepository()
+directory = DirectoryGotoToplevel()
 options = [make_option('-d', '--diff',
                        help = 'edit the patch diff',
                        action = 'store_true'),