summaryrefslogtreecommitdiff
path: root/lib/git/config.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-12-09 21:38:12 +0100
committerSebastian Thiel <byronimo@gmail.com>2009-12-09 21:38:12 +0100
commita97d21936200f1221d8ddd89202042faed1b9bcb (patch)
treed545db205d0bd731fc16d19663f7028dabe0f57d /lib/git/config.py
parent35057c56ce118e4cbd0584bd4690e765317b4c38 (diff)
downloadgitpython-a97d21936200f1221d8ddd89202042faed1b9bcb.tar.gz
config: fixed incorrect handling of default value in get_value
remote.config: SectionConstraint now knows about set_value and get_value which are new to the GitConfigParser
Diffstat (limited to 'lib/git/config.py')
-rw-r--r--lib/git/config.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/git/config.py b/lib/git/config.py
index e8bdfc75..7a09a63c 100644
--- a/lib/git/config.py
+++ b/lib/git/config.py
@@ -360,7 +360,9 @@ class GitConfigParser(cp.RawConfigParser, LockFile):
try:
valuestr = self.get(section, option)
except Exception:
- return default
+ if default is not None:
+ return default
+ raise
types = ( long, float )
for numtype in types: