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
This commit is contained in:
parent
6a8b18a2fd
commit
2fbc97d24c
@ -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
|
||||
|
||||
|
4
tar_scm
4
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
|
||||
|
Loading…
Reference in New Issue
Block a user