aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/feeds
diff options
context:
space:
mode:
authorMirko Vogt <mirko@openwrt.org>2012-04-24 18:19:16 +0000
committerMirko Vogt <mirko@openwrt.org>2012-04-24 18:19:16 +0000
commitcad43b24764d62e7db4d3d19e17b9219e963abff (patch)
treeff98b7e9fa1e6b987fe91ee470de9eac1877b6bd /scripts/feeds
parent4ef95be3d1a6270f931fb1af8625f90c3d9d7cf2 (diff)
downloadupstream-cad43b24764d62e7db4d3d19e17b9219e963abff.tar.gz
upstream-cad43b24764d62e7db4d3d19e17b9219e963abff.tar.bz2
upstream-cad43b24764d62e7db4d3d19e17b9219e963abff.zip
[scripts/feeds] re-enable shallow git clones ('--depth 1')
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31469 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts/feeds')
-rwxr-xr-xscripts/feeds4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/feeds b/scripts/feeds
index b423d8ee1a..1b7aab79cc 100755
--- a/scripts/feeds
+++ b/scripts/feeds
@@ -116,8 +116,8 @@ my %update_method = (
'update' => "",
'revision' => "echo -n 'local'"},
'src-git' => {
- 'init' => "git clone '%s' '%s'",
- 'init_branch' => "git clone --branch '%s' '%s' '%s'",
+ 'init' => "git clone --depth 1 '%s' '%s'",
+ 'init_branch' => "git clone --depth 1 --branch '%s' '%s' '%s'",
'update' => "git pull",
'controldir' => ".git",
'revision' => "git show --abbrev-commit HEAD | head -n 1 | cut -d ' ' -f 2 | tr -d '\n'"},