commit 3dc4a566a44435aabb0bea025cbea4050687da8efa7cfa911aeb98ab7d59c59d from: Stefan Sperling date: Fri Feb 14 16:36:10 2025 UTC avoid use of an undefined variable in test_tag_created and test_tag_changed commit - cc241c8f01caf555ae8cdedfeaad2d1cd281df134f45de0695aa2fed9df7a412 commit + 3dc4a566a44435aabb0bea025cbea4050687da8efa7cfa911aeb98ab7d59c59d blob - 5c141300b81c2f2a3cb907c7a8a6460af7f7491e265ea881c9d492dcf4d30a78 blob + 8056599073072ca6e1fac6d9ccfab4438704e74a70df394761f6289faddc354c --- regress/gotd/email_notification.sh +++ regress/gotd/email_notification.sh @@ -418,7 +418,7 @@ test_tag_created() { local commit_id=`git_show_head $testroot/repo-clone` local tagger_time=`git_show_tagger_time $testroot/repo-clone 1.0` local tag_id=`got ref -r $testroot/repo-clone -l \ - | grep "^refs/tags/$tag" | tr -d ' ' | cut -d: -f2` + | grep "^refs/tags/1.0" | tr -d ' ' | cut -d: -f2` local short_tag_id=`trim_obj_id 12 $tag_id` (printf "220\r\n250\r\n250\r\n250\r\n354\r\n250\r\n221\r\n" \ @@ -499,7 +499,7 @@ test_tag_changed() { got tag -r $testroot/repo-clone -m "new tag" 1.0 > /dev/null local tagger_time=`git_show_tagger_time $testroot/repo-clone 1.0` local tag_id=`got ref -r $testroot/repo-clone -l \ - | grep "^refs/tags/$tag" | tr -d ' ' | cut -d: -f2` + | grep "^refs/tags/1.0" | tr -d ' ' | cut -d: -f2` local short_tag_id=`trim_obj_id 12 $tag_id` (printf "220\r\n250\r\n250\r\n250\r\n354\r\n250\r\n221\r\n" \