From 2fbc97d24c105c3441d63b42c84ed47d4972029672ff1b2741c87f58bf881f8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Thu, 25 Aug 2011 19:16:23 +0000 Subject: [PATCH] Accepting request 79803 from home:marquiz:branches:openSUSE:Tools - history-depth parameter: use hackish depth=999999999 if "full" is given so that a shallow clone will be fully deepened if the _service file is changed. Also, fix git clone cmd line (remove a pair of quotes that cause problems). OBS-URL: https://build.opensuse.org/request/show/79803 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=21 --- obs-service-tar_scm.changes | 8 ++++++++ tar_scm | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/obs-service-tar_scm.changes b/obs-service-tar_scm.changes index 73417b1..bc90a75 100644 --- a/obs-service-tar_scm.changes +++ b/obs-service-tar_scm.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Aug 25 16:17:02 UTC 2011 - markus.lehtonen@linux.intel.com + +- history-depth parameter: use hackish depth=999999999 if "full" is + given so that a shallow clone will be fully deepened if the + _service file is changed. Also, fix git clone cmd line (remove + a pair of quotes that cause problems). + ------------------------------------------------------------------- Thu Aug 25 13:52:06 UTC 2011 - adrian@suse.de diff --git a/tar_scm b/tar_scm index bbe283b..26202ed 100644 --- a/tar_scm +++ b/tar_scm @@ -64,7 +64,7 @@ while test $# -gt 0; do ;; *-history-depth) if [ "$2" == "full" ]; then - MYGITARGS="" + MYGITARGS="--depth 999999999" else MYGITARGS="--depth $2" fi @@ -189,7 +189,7 @@ elif [ "$MYSCM" == "git" ]; then mv "$TAR_DIRECTORY" "${FILE}" || exit 1 else # new checkout - git clone "$MYGITARGS" "$MYURL" "${FILE}" || exit 1 + git clone $MYGITARGS "$MYURL" "${FILE}" || exit 1 if [ -n "$MYREVISION" ]; then cd "$FILE" git checkout "$MYREVISION" || exit 1