[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] announce-gen: Allow using local git user.name.
From: |
Simon Josefsson |
Subject: |
[PATCH] announce-gen: Allow using local git user.name. |
Date: |
Mon, 17 Jul 2023 22:11:19 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Hi. I think announce-gen should use the username provided by the
per-repo .git/config rather than the global ~/.gitconfig.
I hit this corner on build farms where I don't want to modify files
outside of the repository.
/Simon
From 6928b3b86169bf5d265f745ff5f93eb21181a59e Mon Sep 17 00:00:00 2001
From: Simon Josefsson <simon@josefsson.org>
Date: Mon, 17 Jul 2023 22:07:57 +0200
Subject: [PATCH] announce-gen: Allow using local git user.name.
* build-aux/announce-gen (readable_interval): Remove --global
parameter to 'git config' call.
---
ChangeLog | 6 ++++++
build-aux/announce-gen | 4 ++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 88de38a2ae..a19162d1bf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-07-17 Simon Josefsson <simon@josefsson.org>
+
+ announce-gen: Allow using local git user.name.
+ * build-aux/announce-gen (readable_interval): Remove --global
+ parameter to 'git config' call.
+
2023-07-17 Bruno Haible <bruno@clisp.org>
mbuiter: Optimize.
diff --git a/build-aux/announce-gen b/build-aux/announce-gen
index 850619a121..4056d443b0 100755
--- a/build-aux/announce-gen
+++ b/build-aux/announce-gen
@@ -35,7 +35,7 @@
eval 'exec perl -wSx "$0" "$@"'
if 0;
-my $VERSION = '2023-02-26 17:15'; # UTC
+my $VERSION = '2023-07-17 20:05'; # UTC
# The definition above must lie within the first 8 lines in order
# for the Emacs time-stamp write hook (at end) to update it.
# If you change this file with Emacs, please let the write hook
@@ -545,7 +545,7 @@ EOF
my $v0 = $prev_version;
my $v1 = $curr_version;
- (my $first_name = `git config --global user.name|cut -d' ' -f1`)
+ (my $first_name = `git config user.name|cut -d' ' -f1`)
=~ m{\S} or die "no name? set user.name in ~/.gitconfig\n";
chomp (my $n_ci = `git rev-list "v$v0..v$v1" | wc -l`);
--
2.34.1
signature.asc
Description: PGP signature
- [PATCH] announce-gen: Allow using local git user.name.,
Simon Josefsson <=