diff options
author | Guido Günther <agx@sigxcpu.org> | 2017-10-02 19:45:32 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2017-10-02 19:50:18 +0200 |
commit | 0259fd57943ef47c89d7d98320d04d9f7d248a4b (patch) | |
tree | f99dc2d53e74837191fbe93c0aeb2eaa690a60e7 /gbp/config.py | |
parent | 80189f283ed2d04be25c7f6f833d9d8587e95ca8 (diff) |
config: Don't require the command to be started from toplevel dir
At least dch, push, tag and export-orig don't require to be run from the
toplevel of the git repo. Make sure we pick up debian/gbp.conf
nevertheless.
Diffstat (limited to 'gbp/config.py')
-rw-r--r-- | gbp/config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gbp/config.py b/gbp/config.py index ee44e3ff..d4b726a7 100644 --- a/gbp/config.py +++ b/gbp/config.py @@ -504,7 +504,7 @@ class GbpOptionParser(OptionParser): self.config = dict(self.__class__.defaults) config_files = self.get_config_files() try: - repo = GitRepository(".") + repo = GitRepository(".", toplevel=False) except GitRepositoryError: repo = None # Read all config files |