Browse Source

compare names instead of paths for server

Ivan Galakhov 5 năm trước cách đây
mục cha
commit
b1eddf7aa3
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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++