mirror of
https://github.com/raspberrypi/rpi-update.git
synced 2026-01-21 06:13:34 +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 {
|
||||
echo " *** Updating firmware (this may take a few minutes)"
|
||||
eval ${GITCMD} fetch
|
||||
eval ${GITCMD} fetch --depth=1
|
||||
RETVAL=$?
|
||||
if [[ ${RETVAL} -ne 0 ]]; then
|
||||
echo " !!! Failed to download updated firmware files"
|
||||
|
||||
Reference in New Issue
Block a user