and also add git init, as described in last commit
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
		
					parent
					
						
							
								316d20d68a
							
						
					
				
			
			
				commit
				
					
						ec46c1d584
					
				
			
		
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -25,13 +25,15 @@
 | 
			
		|||
#
 | 
			
		||||
#  % git clone git://git.kernel.org/pub/scm/linux/kernel/git/sfr/linux-next.git
 | 
			
		||||
#  % mkdir mynext && cd mynext
 | 
			
		||||
#  % git init
 | 
			
		||||
#  % next-init-branches.sh ../linux-next/Next/Trees
 | 
			
		||||
#  % likenext-init.sh ../linux-next/Next/Trees
 | 
			
		||||
# 
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
file="$1"; shift
 | 
			
		||||
 | 
			
		||||
# init current dir, don't care whether it is already, git init works well ;-)
 | 
			
		||||
git init
 | 
			
		||||
 | 
			
		||||
for remote in $(awk '$2 ~ /git/ { print $1 }' "$file"); do
 | 
			
		||||
   url=$(awk "\$1 ~ /$remote/ { print \$3 }" "$file")
 | 
			
		||||
   rurl=$(echo $url | awk -F'#' '{ print $1 }')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue