chiark / gitweb /
Fix more commands to run correctly in subdirectories
[stgit] / stgit / commands / sink.py
index b1773376f80e8aeb78fb0824d41e22ad7682f7b8..2167d873ba422e62ca41c5813bc02112e515c6bb 100644 (file)
@@ -32,7 +32,7 @@ push the specified <patches> (the current patch by default), and
 then push back into place the formerly-applied patches (unless -n
 is also given)."""
 
-directory = DirectoryHasRepository()
+directory = DirectoryGotoToplevel()
 options = [make_option('-n', '--nopush',
                        help = 'do not push the patches back after sinking',
                        action = 'store_true'),