Parcourir la source

compare names instead of paths for server

Ivan Galakhov il y a 5 ans
Parent
commit
b1eddf7aa3
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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
 
 	for i := range directoryContents {
-		name := *directoryContents[i].Path
+		name := *directoryContents[i].Name
+
 		bname, ok := BREQS[name]
 		if ok {
 			matches++