clone --depth 1
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=7
This commit is contained in:
parent
651b9dc1b7
commit
df8c59e87f
@ -2,6 +2,7 @@
|
|||||||
Thu Dec 30 12:41:57 UTC 2010 - adrian@suse.de
|
Thu Dec 30 12:41:57 UTC 2010 - adrian@suse.de
|
||||||
|
|
||||||
- add option exclude files/directories when creating the tar ball
|
- 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
|
Wed Dec 8 06:29:42 UTC 2010 - wr@rosenauer.org
|
||||||
|
2
tar_scm
2
tar_scm
@ -163,7 +163,7 @@ elif [ "$MYSCM" == "git" ]; then
|
|||||||
mv "$TAR_DIRECTORY" "${FILE}" || exit 1
|
mv "$TAR_DIRECTORY" "${FILE}" || exit 1
|
||||||
else
|
else
|
||||||
# new checkout
|
# new checkout
|
||||||
git clone "$MYURL" "${FILE}" || exit 1
|
git clone --depth 1 "$MYURL" "${FILE}" || exit 1
|
||||||
if [ -n "$MYREVISION" ]; then
|
if [ -n "$MYREVISION" ]; then
|
||||||
cd "$FILE"
|
cd "$FILE"
|
||||||
git checkout "$MYREVISION" || exit 1
|
git checkout "$MYREVISION" || exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user