mirror of
https://github.com/raspberrypi/rpi-update.git
synced 2026-01-20 21:13:38 +08:00
Use -depth=1 on git fetch to speed updates up
This commit is contained in:
@@ -133,7 +133,7 @@ function download_repo {
|
|||||||
|
|
||||||
function update_repo {
|
function update_repo {
|
||||||
echo " *** Updating firmware (this may take a few minutes)"
|
echo " *** Updating firmware (this may take a few minutes)"
|
||||||
eval ${GITCMD} fetch
|
eval ${GITCMD} fetch --depth=1
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
if [[ ${RETVAL} -ne 0 ]]; then
|
if [[ ${RETVAL} -ne 0 ]]; then
|
||||||
echo " !!! Failed to download updated firmware files"
|
echo " !!! Failed to download updated firmware files"
|
||||||
|
|||||||
Reference in New Issue
Block a user