git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5487058)
add_commit_links.pl: error out if missing major version number
2025年8月30日 22:26:08 +0000 (18:26 -0400)
2025年8月30日 22:26:08 +0000 (18:26 -0400)
Reported-by: Tom Lane
Author: Tom Lane

Discussion: https://postgr.es/m/53125.1756591456@sss.pgh.pa.us


diff --git a/src/tools/add_commit_links.pl b/src/tools/add_commit_links.pl
index 710a6492032096ba5129a88e0616f15c0558acdb..87a6e47e6feadcc38be8ed6090dad96cc2b2ee05 100755 (executable)
--- a/src/tools/add_commit_links.pl
+++ b/src/tools/add_commit_links.pl
@@ -50,6 +50,8 @@ sub process_file
# Get major version number from the file name.
$file =~ m/-(\d+)\./;
my $major_version = 1ドル;
+ die "file name $file is not in the expected format\n"
+ unless defined $major_version;
open(my $fh, '<', $file) || die "could not open file $file: $!\n";
open(my $tfh, '>', $tmpfile) || die "could not open file $tmpfile: $!\n";
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /