log errors from git.Open
This commit is contained in:
		
							parent
							
								
									8f9e7f14ff
								
							
						
					
					
						commit
						30c0f3eea0
					
				
							
								
								
									
										3
									
								
								readme
								
								
								
								
							
							
						
						
									
										3
									
								
								readme
								
								
								
								
							| 
						 | 
					@ -72,6 +72,9 @@ NOTES
 | 
				
			||||||
  or may not want this.
 | 
					  or may not want this.
 | 
				
			||||||
• Pushing over https, while supported, is disabled because auth is a
 | 
					• Pushing over https, while supported, is disabled because auth is a
 | 
				
			||||||
  pain. Use ssh.
 | 
					  pain. Use ssh.
 | 
				
			||||||
 | 
					• Your remote's default branch must point to one of the listed
 | 
				
			||||||
 | 
					  repo.mainBranch. (ref:
 | 
				
			||||||
 | 
					  https://social.alexschroeder.ch/@alex/statuses/01HEA8T69WANTMZSTX0X5YF0WM)
 | 
				
			||||||
• Paths are unveil(2)'d on OpenBSD.
 | 
					• Paths are unveil(2)'d on OpenBSD.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -45,6 +45,7 @@ func (d *deps) Index(w http.ResponseWriter, r *http.Request) {
 | 
				
			||||||
		path := filepath.Join(d.c.Repo.ScanPath, dir.Name())
 | 
							path := filepath.Join(d.c.Repo.ScanPath, dir.Name())
 | 
				
			||||||
		gr, err := git.Open(path, "")
 | 
							gr, err := git.Open(path, "")
 | 
				
			||||||
		if err != nil {
 | 
							if err != nil {
 | 
				
			||||||
 | 
								log.Println(err)
 | 
				
			||||||
			continue
 | 
								continue
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue