Author: jow Date: 2015-12-07 17:30:59 +0100 (Mon, 07 Dec 2015) New Revision: 47805
Modified: branches/barrier_breaker/scripts/feeds Log: BB: scripts/feeds: add support for optionally using a full clone of git repositories Signed-off-by: Felix Fietkau <[email protected]> Backport of r45668 Modified: branches/barrier_breaker/scripts/feeds =================================================================== --- branches/barrier_breaker/scripts/feeds 2015-12-07 16:05:54 UTC (rev 47804) +++ branches/barrier_breaker/scripts/feeds 2015-12-07 16:30:59 UTC (rev 47805) @@ -49,7 +49,7 @@ $line++; my $valid = 1; - $line[0] =~ /^src-\w+$/ or $valid = 0; + $line[0] =~ /^src-[\w-]+$/ or $valid = 0; $line[1] =~ /^\w+$/ or $valid = 0; @src = split /\s+/, $line[2]; $valid or die "Syntax error in feeds.conf, line: $line\n"; @@ -124,6 +124,13 @@ 'update' => "git pull --ff", 'controldir' => ".git", 'revision' => "git show --abbrev-commit HEAD | head -n 1 | cut -d ' ' -f 2 | tr -d '\n'"}, + 'src-git-full' => { + 'init' => "git clone '%s' '%s'", + 'init_branch' => "git clone --branch '%s' '%s' '%s'", + 'init_commit' => "git clone '%s' '%s' && cd '%s' && git checkout -b '%s' '%s' && cd -", + 'update' => "git pull --ff", + 'controldir' => ".git", + 'revision' => "git show --abbrev-commit HEAD | head -n 1 | cut -d ' ' -f 2 | tr -d '\n'"}, 'src-gitsvn' => { 'init' => "git svn clone -r HEAD '%s' '%s'", 'update' => "git svn rebase", _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
