re-enable shallow git clones ('--depth 1')
authorMirko Vogt <mirko@openwrt.org>
Tue, 24 Apr 2012 18:19:16 +0000 (18:19 +0000)
committerMirko Vogt <mirko@openwrt.org>
Tue, 24 Apr 2012 18:19:16 +0000 (18:19 +0000)
SVN-Revision: 31469

scripts/feeds

index b423d8ee1ac5dc920569d6ee2bee419d50fe9fb4..1b7aab79ccc1d3e9d309a2c16b48f07386ad6c72 100755 (executable)
@@ -116,8 +116,8 @@ my %update_method = (
                'update'        => "",
                'revision'      => "echo -n 'local'"},
        'src-git' => {
                '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'"},
                'update'        => "git pull",
                'controldir'    => ".git",
                'revision'      => "git show --abbrev-commit HEAD | head -n 1 | cut -d ' ' -f 2 | tr -d '\n'"},