summaryrefslogtreecommitdiffhomepage
path: root/gbp
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2018-04-26 09:34:23 +0200
committerGuido Günther <agx@sigxcpu.org>2018-04-26 09:42:21 +0200
commita6ceb00b8bc466049610f1f3777ca02f2e12fc6e (patch)
tree8c87271c7d9a14ad26762d424b3447b88f43e755 /gbp
parent3da92ba2c33074f814309d89fec14d18b6bff269 (diff)
config: when printing a single value only print the value
This is more in line with what `git config` does and eases usage in scripts.
Diffstat (limited to 'gbp')
-rwxr-xr-xgbp/scripts/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gbp/scripts/config.py b/gbp/scripts/config.py
index a0d66ca6..e988748c 100755
--- a/gbp/scripts/config.py
+++ b/gbp/scripts/config.py
@@ -69,7 +69,7 @@ def build_cmd_parser(section):
def print_single_option(parser, option, printer):
value = parser.get_config_file_value(option)
if value is not None:
- printer("%s.%s=%s" % (parser.command, option, value))
+ printer("%s" % value)
else:
return 2
return 0