diff options
-rwxr-xr-x | sbosrcarch | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1706,13 +1706,16 @@ sub write_status_file { my $content = shift; init_git(); - chomp(my $logline = `TZ=UTC git log --date=format-local:'%Y-%m-%d %H:%M:%S %Z' --pretty=format:'%h %cd: %an, %s' -n1`); + + # git is lovely, but all those options mean it takes a minute to + # find what you wanted in the man page... + chomp(my $logline = `TZ=UTC git log --date=format-local:'%a %Y-%m-%d %H:%M:%S %Z' --pretty=format:'%h %cd: %an, %s' -n1`); chdir($archivedir) or die "$archivedir: $!"; rename("STATUS", "STATUS.old"); # ignore errors open(my $fh, '>', "STATUS") or return; - chomp(my $timestamp = `TZ=UTC date '+%Y-%m-%d %H:%M:%S %Z'`); + chomp(my $timestamp = `TZ=UTC date '+%a %Y-%m-%d %H:%M:%S %Z'`); print $fh <<EOF; Status report for sbosrcarch archive |