commit:     fdf1cc37dac1ed2d879b0f11501445e641644ce2
Author:     Mike Pagano <mpagano <AT> gentoo <DOT> org>
AuthorDate: Mon Jul  8 20:47:24 2019 +0000
Commit:     Mike Pagano <mpagano <AT> gentoo <DOT> org>
CommitDate: Mon Jul  8 20:47:24 2019 +0000
URL:        https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=fdf1cc37

Fix email for X.Y.0 patchsets

Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org>

 web/email-announcement.pl | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/web/email-announcement.pl b/web/email-announcement.pl
index c5c2b56..adbb455 100755
--- a/web/email-announcement.pl
+++ b/web/email-announcement.pl
@@ -26,10 +26,13 @@ $result = `rm -rf ${LOCAL_TMP}/linux-patches`;
 $result = `cd $LOCAL_TMP`;
 $result = `git -C ${LOCAL_TMP}/linux-patches reset`;
 #$result = `git clone --depth=50 $REMOTE_BASE ${LOCAL_TMP}/linux-patches`;
-$result = `git clone -b $ver --single-branch $REMOTE_BASE 
${LOCAL_TMP}/linux-patches`;
+$result = `git clone $REMOTE_BASE ${LOCAL_TMP}/linux-patches`;
+#$result = `git clone -b $ver --single-branch $REMOTE_BASE 
${LOCAL_TMP}/linux-patches`;
 
+#printf ("ver is ${ver} rel is ${rel} tag is ${tag}\n");
 # checkout branch
-$result = `git -C ${LOCAL_TMP}/linux-patches checkout ${tag}`;
+#$result = `git -C ${LOCAL_TMP}/linux-patches checkout ${tag}`;
+$result = `git -C ${LOCAL_TMP}/linux-patches checkout ${ver}`;
 
 # Try and find previous release
 if ($rel > 1) {
@@ -63,7 +66,8 @@ else {
     # just do git log
     #$cmd='git --no-pager -C '.${LOCAL_TMP}.'/linux-patches log  
--pretty=format:"%s (%an)" --name-status '.$ver;
     #$cmd='git --no-pager -C '.${LOCAL_TMP}.'/linux-patches log  
--pretty=format:"%s (%an)" ..'.$tag;
-    $cmd='git --no-pager -C '.${LOCAL_TMP}.'/linux-patches log  
--pretty=format:"%s (%an)" '.$tag.'...master';
+    #$cmd='git --no-pager -C '.${LOCAL_TMP}.'/linux-patches log  
--pretty=format:"%s (%an)" --name-status '.$tag.'...master';
+    $cmd='git --no-pager -C '.${LOCAL_TMP}.'/linux-patches log  
--pretty=format:"%s (%an)" --name-status  master..remotes/origin/'.$ver.' 
/tmp/linux-patches';
     @log_lines = `$cmd`;
 }
 

Reply via email to