Merge pull request #1927 from dtzWill/fix/fetchgit-HEAD
fetchGit: use "HEAD" as default ref instead of "master"
This commit is contained in:
		
						commit
						4a000cbb39
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -79,7 +79,7 @@ GitInfo exportGit(ref<Store> store, const std::string & uri,
 | 
			
		|||
        ref = "HEAD"s;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (!ref) ref = "master"s;
 | 
			
		||||
    if (!ref) ref = "HEAD"s;
 | 
			
		||||
 | 
			
		||||
    if (rev != "" && !std::regex_match(rev, revRegex))
 | 
			
		||||
        throw Error("invalid Git revision '%s'", rev);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue