aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2009-02-03 09:15:49 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2009-02-03 09:15:49 +0000
commit0b404041c3d71821e8c6b34c530304ab6f31fce8 (patch)
tree029cba31e74a30d54b447b391f8e5bda508549dc
parent065d2cd2b65f5c195cdbbf902586ca6feea01394 (diff)
downloadrpm-setup-0b404041c3d71821e8c6b34c530304ab6f31fce8.tar
rpm-setup-0b404041c3d71821e8c6b34c530304ab6f31fce8.tar.gz
rpm-setup-0b404041c3d71821e8c6b34c530304ab6f31fce8.tar.bz2
rpm-setup-0b404041c3d71821e8c6b34c530304ab6f31fce8.tar.xz
rpm-setup-0b404041c3d71821e8c6b34c530304ab6f31fce8.zip
Use fake email address in commit logs
If the commits don't have an email address looking like a valid email address, then git-rebase (and possibly other git tools) will complain. Use the dummy devel@mandriva.com as the email address of the author of the patch
-rwxr-xr-xgit-repository--after-tarball2
-rwxr-xr-xgit-repository--apply-patch2
2 files changed, 2 insertions, 2 deletions
diff --git a/git-repository--after-tarball b/git-repository--after-tarball
index bed3d04..47844d0 100755
--- a/git-repository--after-tarball
+++ b/git-repository--after-tarball
@@ -64,7 +64,7 @@ if [ ! -e .git ]; then
fi
git add .
set_GIT_AUTHOR_DATE $tarballs
-git commit -q -a --author="unknown <>" -m "imported $tarballs"
+git commit -q -a --author="unknown author <cooker@mandrivalinux.org>" -m "imported $tarballs"
git branch -f vanilla
git branch -f patches-applied
git checkout patches-applied
diff --git a/git-repository--apply-patch b/git-repository--apply-patch
index a4bdf8b..1ad72fa 100755
--- a/git-repository--apply-patch
+++ b/git-repository--apply-patch
@@ -64,7 +64,7 @@ sub git_commit {
my ($msg, $date) = @_;
$ENV{GIT_AUTHOR_DATE} = $date;
- open(my $F, '| git commit -q --author="unknown <>" --file=-');
+ open(my $F, '| git commit -q --author="unknown author <cooker@mandrivalinux.org>" --file=-');
print $F $msg;
close $F or die "git commit failed\n";
}