From df8c59e87f12dbf990db9b1a97ae78d3728adcd257000d22f8afa84717b94d6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Thu, 30 Dec 2010 14:45:25 +0000 Subject: [PATCH] clone --depth 1 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=7 --- obs-service-tar_scm.changes | 1 + tar_scm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/obs-service-tar_scm.changes b/obs-service-tar_scm.changes index 809c5d8..9235c14 100644 --- a/obs-service-tar_scm.changes +++ b/obs-service-tar_scm.changes @@ -2,6 +2,7 @@ Thu Dec 30 12:41:57 UTC 2010 - adrian@suse.de - add option exclude files/directories when creating the tar ball +- git clone runs now with --depth 1 option ------------------------------------------------------------------- Wed Dec 8 06:29:42 UTC 2010 - wr@rosenauer.org diff --git a/tar_scm b/tar_scm index 957461c..a173750 100644 --- a/tar_scm +++ b/tar_scm @@ -163,7 +163,7 @@ elif [ "$MYSCM" == "git" ]; then mv "$TAR_DIRECTORY" "${FILE}" || exit 1 else # new checkout - git clone "$MYURL" "${FILE}" || exit 1 + git clone --depth 1 "$MYURL" "${FILE}" || exit 1 if [ -n "$MYREVISION" ]; then cd "$FILE" git checkout "$MYREVISION" || exit 1