The dependency on "git cclone" was not documented. Not everyone needs
it, so only use it if available and fall back to "git clone"
otherwise.
Change-Id: Ifc3fd18d253d4e4c385e9854ba04c8d6d83acb38
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
merge: cclone
Change-Id: I060a73e1ae5b911b665abb598f578562e65bfc52
mkdir -p git_package
mkdir -p specfile-initial
-GIT_CLONE="git cclone"
+# Choose "git cclone" (https://github.com/kooltux/git-cache) if
+# available, otherwise "git clone". Can be overriden by setting
+# GIT_CLONE env variable.
+if [ ! "$GIT_CLONE" ]; then
+ if git help -a | grep -q -w cclone; then
+ GIT_CLONE="git cclone"
+ else
+ GIT_CLONE="git clone"
+ fi
+fi
cd git_package