diff options
author | Adeodato Simó <dato@net.com.org.es> | 2008-04-12 16:41:28 +0200 |
---|---|---|
committer | Guido Guenther <agx@sigxcpu.org> | 2008-04-14 14:55:47 +0200 |
commit | baaf482179c10e936f4e506d58736870e4cde6a5 (patch) | |
tree | 1a846c967b6f2260d582acf39e2fe949df3606df /gbp/command_wrappers.py | |
parent | 6e2a67576afc1dcb4a947851351e6b3c02564d07 (diff) | |
download | git-buildpackage-baaf482179c10e936f4e506d58736870e4cde6a5.tar.gz git-buildpackage-baaf482179c10e936f4e506d58736870e4cde6a5.tar.bz2 git-buildpackage-baaf482179c10e936f4e506d58736870e4cde6a5.zip |
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)
Diffstat (limited to 'gbp/command_wrappers.py')
-rw-r--r-- | gbp/command_wrappers.py | 8 |
1 files changed, 4 insertions, 4 deletions
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] |