clone: do not create remotes/origin nor origin branch in a bare repository.
It is simply pointless, since no merges will ever happen in such a repository. Signed-off-by: Junio C Hamano <junkio@cox.net>maint
							parent
							
								
									87e80c4b5f
								
							
						
					
					
						commit
						4fb66a62ee
					
				| 
						 | 
				
			
			@ -62,7 +62,9 @@ OPTIONS
 | 
			
		|||
	Make a 'bare' GIT repository.  That is, instead of
 | 
			
		||||
	creating `<directory>` and placing the administrative
 | 
			
		||||
	files in `<directory>/.git`, make the `<directory>`
 | 
			
		||||
	itself the `$GIT_DIR`. This implies `-n` option.
 | 
			
		||||
	itself the `$GIT_DIR`. This implies `-n` option.  When
 | 
			
		||||
	this option is used, neither the `origin` branch nor the
 | 
			
		||||
	default	`remotes/origin` file is created.
 | 
			
		||||
 | 
			
		||||
-o <name>::
 | 
			
		||||
	Instead of using the branch name 'origin' to keep track
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -209,7 +209,7 @@ esac
 | 
			
		|||
 | 
			
		||||
cd "$D" || exit
 | 
			
		||||
 | 
			
		||||
if test -f "$GIT_DIR/HEAD"
 | 
			
		||||
if test -f "$GIT_DIR/HEAD" && test -z "$bare"
 | 
			
		||||
then
 | 
			
		||||
	head_points_at=`git-symbolic-ref HEAD`
 | 
			
		||||
	case "$head_points_at" in
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue