From baaf482179c10e936f4e506d58736870e4cde6a5 Mon Sep 17 00:00:00 2001 From: Adeodato Simó Date: Sat, 12 Apr 2008 16:41:28 +0200 Subject: Make commits from git-import-dsc get author and date from debian/changelog. This is done by setting GIT_AUTHOR_{NAME,EMAIL,DATE} before invoking git-commit. GIT_COMMITTER_* are left alone (i.e., the date of the import will be available from there). (cherry picked from commit acee866d1d89327aa530b6531b50b4edcc524906) --- gbp/command_wrappers.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gbp/command_wrappers.py') diff --git a/gbp/command_wrappers.py b/gbp/command_wrappers.py index e986113d..36dd5be2 100644 --- a/gbp/command_wrappers.py +++ b/gbp/command_wrappers.py @@ -140,8 +140,8 @@ class DpkgSourceExtract(Command): class GitCommand(Command): "Mother/Father of all git commands" - def __init__(self, cmd, args=[]): - Command.__init__(self, 'git', [cmd] + args) + def __init__(self, cmd, args=[], **kwargs): + Command.__init__(self, 'git', [cmd] + args, **kwargs) class GitInitDB(GitCommand): @@ -219,9 +219,9 @@ class GitRm(GitCommand): class GitCommitAll(GitCommand): """Wrap git commit to commit all changes""" - def __init__(self, verbose=False): + def __init__(self, verbose=False, **kwargs): args = ['-a'] + [ ['-q'], [] ][verbose] - GitCommand.__init__(self, cmd='commit', args=args) + GitCommand.__init__(self, cmd='commit', args=args, **kwargs) def __call__(self, msg=''): args = [ [], ['-m', msg] ][len(msg) > 0] -- cgit v1.2.3