aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/config.py
diff options
context:
space:
mode:
authorMichael Stapelberg <stapelberg@debian.org>2016-11-24 12:17:50 +0100
committerGuido Günther <agx@sigxcpu.org>2016-12-19 08:32:38 +0100
commit67cf3ed1bb667816baff586b75d991142d1840ef (patch)
tree96e3e5187658afb22288d9b410fc5e1abe4efad3 /gbp/config.py
parent9cbb9df7d8e05ce9c356216e3c4ac190141c0d02 (diff)
gbp clone: configure user.email, user.name from DEBEMAIL/DEBFULLNAME
Signed-off-by: Guido Günther <agx@sigxcpu.org> Close: #845536
Diffstat (limited to 'gbp/config.py')
-rw-r--r--gbp/config.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/gbp/config.py b/gbp/config.py
index 149a1bb4..18a3afc5 100644
--- a/gbp/config.py
+++ b/gbp/config.py
@@ -181,6 +181,8 @@ class GbpOptionParser(OptionParser):
'component': [],
'bare': 'True',
'urgency': 'medium',
+ 'repo-user': 'DEBIAN',
+ 'repo-email': 'DEBIAN',
}
help = {
'debian-branch':
@@ -350,7 +352,15 @@ class GbpOptionParser(OptionParser):
"wether to create a bare repository on the remote side. "
"'Default is '%(bare)s'.",
'urgency':
- "Set urgency level, default is '%(urgency)s'"
+ "Set urgency level, default is '%(urgency)s'",
+ 'repo-user':
+ "Set repo username from the DEBFULLNAME and DEBEMAIL "
+ "environment variables ('DEBIAN') or fallback to the "
+ "git configuration ('GIT'), default is '%(repo-user)s'",
+ 'repo-email':
+ "Set repo email from the DEBFULLNAME and DEBEMAIL "
+ "environment variables ('DEBIAN') or fallback to the "
+ "git configuration ('GIT'), default is '%(repo-email)s'"
}
short_opts = {