瀏覽代碼

#2375 preserve cases for action content

Unknwon 8 年之前
父節點
當前提交
70a281a39b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      models/action.go

+ 1 - 1
models/action.go

@@ -561,7 +561,7 @@ func transferRepoAction(e Engine, actUser, oldOwner, newOwner *User, repo *Repos
 		RepoUserName: newOwner.Name,
 		RepoName:     repo.Name,
 		IsPrivate:    repo.IsPrivate,
-		Content:      path.Join(oldOwner.LowerName, repo.LowerName),
+		Content:      path.Join(oldOwner.Name, repo.Name),
 	}); err != nil {
 		return fmt.Errorf("notify watchers '%d/%d': %v", actUser.Id, repo.ID, err)
 	}