mirror of
				https://github.com/Dev-Wiki/git-repo.git
				synced 2025-11-04 01:54:12 +08:00 
			
		
		
		
	Make --no-tags work with -c
Currently, the --no-tags option is ignored if the user asks to only fetch the current branch. There is no reason for this restriction. Fix it. Change-Id: Ibaaeae85ebe9955ed49325940461d630d794b990 Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
This commit is contained in:
		
				
					committed by
					
						
						David Pursehouse
					
				
			
			
				
	
			
			
			
						parent
						
							68425f4da8
						
					
				
				
					commit
					26c45a7958
				
			
							
								
								
									
										14
									
								
								project.py
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								project.py
									
									
									
									
									
								
							@@ -1763,15 +1763,15 @@ class Project(object):
 | 
			
		||||
      cmd.append('--update-head-ok')
 | 
			
		||||
    cmd.append(name)
 | 
			
		||||
 | 
			
		||||
    # If using depth then we should not get all the tags since they may
 | 
			
		||||
    # be outside of the depth.
 | 
			
		||||
    if no_tags or depth:
 | 
			
		||||
      cmd.append('--no-tags')
 | 
			
		||||
    else:
 | 
			
		||||
      cmd.append('--tags')
 | 
			
		||||
 | 
			
		||||
    if not current_branch_only:
 | 
			
		||||
      # Fetch whole repo
 | 
			
		||||
      # If using depth then we should not get all the tags since they may
 | 
			
		||||
      # be outside of the depth.
 | 
			
		||||
      if no_tags or depth:
 | 
			
		||||
        cmd.append('--no-tags')
 | 
			
		||||
      else:
 | 
			
		||||
        cmd.append('--tags')
 | 
			
		||||
 | 
			
		||||
      cmd.append(str((u'+refs/heads/*:') + remote.ToLocal('refs/heads/*')))
 | 
			
		||||
    elif tag_name is not None:
 | 
			
		||||
      cmd.append('tag')
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user