summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pagano <mpagano@gentoo.org>2018-08-04 09:26:49 -0400
committerMike Pagano <mpagano@gentoo.org>2018-08-04 09:26:49 -0400
commitb31c54b2c3df622f58079e89d5659d4c54239e66 (patch)
tree1ac67749faca1619c632a499d8246375f59a8943
parentRemove debug lines (diff)
downloadlinux-patches-b31c54b2.tar.gz
linux-patches-b31c54b2.tar.bz2
linux-patches-b31c54b2.zip
Fix git clone for email announcement
-rwxr-xr-xweb/email-announcement.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/web/email-announcement.pl b/web/email-announcement.pl
index 1020df4e..5b1755b8 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}`;