chiark / gitweb /
Make "stg push" subdirectory safe
[stgit] / stgit / commands / push.py
index b91bc5e23536ab54d27917e590529659931d5df5..4d5de26feded214bce142cfbad886ad19e087525 100644 (file)
@@ -39,7 +39,7 @@ command run.
 The command also notifies when the patch becomes empty (fully merged
 upstream) or is modified (three-way merged) by the 'push' operation."""
 
-directory = DirectoryHasRepository()
+directory = DirectoryGotoToplevel()
 options = [make_option('-a', '--all',
                        help = 'push all the unapplied patches',
                        action = 'store_true'),