commit:     b31c54b2c3df622f58079e89d5659d4c54239e66
Author:     Mike Pagano <mpagano <AT> gentoo <DOT> org>
AuthorDate: Sat Aug  4 13:26:49 2018 +0000
Commit:     Mike Pagano <mpagano <AT> gentoo <DOT> org>
CommitDate: Sat Aug  4 13:26:49 2018 +0000
URL:        https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=b31c54b2

Fix git clone for email announcement

 web/email-announcement.pl | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/web/email-announcement.pl b/web/email-announcement.pl
index 1020df4..5b1755b 100755
--- a/web/email-announcement.pl
+++ b/web/email-announcement.pl
@@ -22,9 +22,11 @@ else { # support for kernels >= 3.0
 $have_history = 0;
 $website_base = 'http://dev.gentoo.org/~mpagano/genpatches';
 
+$result = `rm -rf ${LOCAL_TMP}/linux-patches`;
 $result = `cd $LOCAL_TMP`;
 $result = `git -C ${LOCAL_TMP}/linux-patches reset`;
-$result = `git clone $REMOTE_BASE ${LOCAL_TMP}/linux-patches`;
+#$result = `git clone --depth=50 $REMOTE_BASE ${LOCAL_TMP}/linux-patches`;
+$result = `git clone -b $ver --single-branch $REMOTE_BASE 
${LOCAL_TMP}/linux-patches`;
 
 # checkout branch
 $result = `git -C ${LOCAL_TMP}/linux-patches checkout ${tag}`;

Reply via email to