aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2013-05-02 21:35:10 +0200
committerGuido Günther <agx@sigxcpu.org>2013-05-02 21:36:52 +0200
commitd645733da513471492f358c31949f99319ae8878 (patch)
tree4d95d5a75fd150c07e965b1edecc1b7cf7132d5c
parent5923515c3af2fd4ee0b8f73ea03f9d2debeaf77e (diff)
dch: make sure branch is always defined
This fixes a problem when running git-dch form a detached HEAD
-rw-r--r--gbp/scripts/dch.py1
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='',