chiark / gitweb /
Fix more commands to run correctly in subdirectories
[stgit] / stgit / commands / new.py
index b0a57d1579557bce6005191db84ad617a4bb5884..49c729d5e5c4412185c109da206deeeba15807cb 100644 (file)
@@ -38,7 +38,7 @@ needed for this.
 If no name is given for the new patch, one is generated from the first
 line of the commit message."""
 
-directory = DirectoryHasRepository()
+directory = DirectoryGotoToplevel()
 options = [make_option('-m', '--message',
                        help = 'use MESSAGE as the patch description'),
            make_option('-s', '--showpatch',