X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=scripts%2Ffeeds;h=b1bdee597ea0f2e1a8c5da5553bd9064737cb949;hb=5866a567c9843c8adb15c02c90f3d9235e54adb3;hp=b423d8ee1ac5dc920569d6ee2bee419d50fe9fb4;hpb=0a7068a8d0209d28ca4df7aa303e6c07365ca834;p=openwrt.git diff --git a/scripts/feeds b/scripts/feeds index b423d8ee1a..b1bdee597e 100755 --- a/scripts/feeds +++ b/scripts/feeds @@ -10,8 +10,9 @@ use Cwd 'abs_path'; chdir "$FindBin::Bin/.."; $ENV{TOPDIR}=getcwd(); +$ENV{GIT_CONFIG_PARAMETERS}="'core.autocrlf=false'"; -my $mk=`which gmake`; # select the right 'make' program +my $mk=`which gmake 2>/dev/null`; # select the right 'make' program chomp($mk); # trim trailing newline $mk or $mk = "make"; # default to 'make' @@ -116,8 +117,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'"}, @@ -540,7 +541,7 @@ sub update { my $perform_update=1; $ENV{SCAN_COOKIE} = $$; - $ENV{KBUILD_VERBOSE} = 99; + $ENV{OPENWRT_VERBOSE} = 's'; getopts('ahi', \%opts);