fetchGit: Add a test
This commit is contained in:
		
							parent
							
								
									0e77aa3982
								
							
						
					
					
						commit
						4dee01da7c
					
				
					 6 changed files with 90 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -72,7 +72,7 @@ HgInfo exportMercurial(ref<Store> store, const std::string & uri,
 | 
			
		|||
    time_t now = time(0);
 | 
			
		||||
    struct stat st;
 | 
			
		||||
    if (stat(stampFile.c_str(), &st) != 0 ||
 | 
			
		||||
        st.st_mtime < now - settings.tarballTtl)
 | 
			
		||||
        st.st_mtime <= now - settings.tarballTtl)
 | 
			
		||||
    {
 | 
			
		||||
        /* Except that if this is a commit hash that we already have,
 | 
			
		||||
           we don't have to pull again. */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue