Explorar el Código

compare names instead of paths for server

Ivan Galakhov hace 5 años
padre
commit
b1eddf7aa3
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      server/api/git_repo_handler.go

+ 2 - 1
server/api/git_repo_handler.go

@@ -259,7 +259,8 @@ func (app *App) HandleDetectBuildpack(w http.ResponseWriter, r *http.Request) {
 	matches := 0
 	matches := 0
 
 
 	for i := range directoryContents {
 	for i := range directoryContents {
-		name := *directoryContents[i].Path
+		name := *directoryContents[i].Name
+
 		bname, ok := BREQS[name]
 		bname, ok := BREQS[name]
 		if ok {
 		if ok {
 			matches++
 			matches++