diff options
author | Guido Günther <agx@sigxcpu.org> | 2013-05-02 21:35:10 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2013-05-02 21:36:52 +0200 |
commit | d645733da513471492f358c31949f99319ae8878 (patch) | |
tree | 4d95d5a75fd150c07e965b1edecc1b7cf7132d5c /gbp/scripts | |
parent | 5923515c3af2fd4ee0b8f73ea03f9d2debeaf77e (diff) |
dch: make sure branch is always defined
This fixes a problem when running git-dch form a detached HEAD
Diffstat (limited to 'gbp/scripts')
-rw-r--r-- | gbp/scripts/dch.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gbp/scripts/dch.py b/gbp/scripts/dch.py index 12eae36..9b73b24 100644 --- a/gbp/scripts/dch.py +++ b/gbp/scripts/dch.py @@ -271,6 +271,7 @@ def main(argv): until = 'HEAD' found_snapshot_header = False version_change = {} + branch = None try: parser = GbpOptionParserDebian(command=os.path.basename(argv[0]), prefix='', |