瀏覽代碼

compare names instead of paths for server

Ivan Galakhov 4 年之前
父節點
當前提交
b1eddf7aa3
共有 1 個文件被更改,包括 2 次插入1 次删除
  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++