mirror of
https://github.com/git/git.git
synced 2024-10-28 12:59:41 +01:00
send-email: use built-in time() instead of /bin/date '+%s'
Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
c150462824
commit
72095d5c37
1 changed files with 1 additions and 2 deletions
|
@ -258,8 +258,7 @@ sub gitvar_ident {
|
|||
|
||||
sub make_message_id
|
||||
{
|
||||
my $date = `date "+\%s"`;
|
||||
chomp($date);
|
||||
my $date = time;
|
||||
my $pseudo_rand = int (rand(4200));
|
||||
$message_id = sprintf $message_id_template, "$date$pseudo_rand";
|
||||
#print "new message id = $message_id\n"; # Was useful for debugging
|
||||
|
|
Loading…
Reference in a new issue