Browse Source

fix typos (#12545)

* fix typo in app.ini

* fix typo in git hook module

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
for-closed-social
Success 4 years ago
committed by GitHub
parent
commit
7c0862b6d9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      custom/conf/app.example.ini
  2. +1
    -1
      modules/git/hook.go

+ 1
- 1
custom/conf/app.example.ini View File

@ -985,7 +985,7 @@ NAMES = English,简体中文,繁體中文(香港),繁體中文(台灣),D
; Two Factor authentication with security keys ; Two Factor authentication with security keys
; https://developers.yubico.com/U2F/App_ID.html ; https://developers.yubico.com/U2F/App_ID.html
;APP_ID = http://localhost:3000/ ;APP_ID = http://localhost:3000/
; Comma seperated list of trusted facets
; Comma separated list of trusted facets
;TRUSTED_FACETS = http://localhost:3000/ ;TRUSTED_FACETS = http://localhost:3000/
; Extension mapping to highlight class ; Extension mapping to highlight class

+ 1
- 1
modules/git/hook.go View File

@ -125,7 +125,7 @@ const (
HookPathUpdate = "hooks/update" HookPathUpdate = "hooks/update"
) )
// SetUpdateHook writes given content to update hook of the reposiotry.
// SetUpdateHook writes given content to update hook of the repository.
func SetUpdateHook(repoPath, content string) (err error) { func SetUpdateHook(repoPath, content string) (err error) {
log("Setting update hook: %s", repoPath) log("Setting update hook: %s", repoPath)
hookPath := path.Join(repoPath, HookPathUpdate) hookPath := path.Join(repoPath, HookPathUpdate)

Loading…
Cancel
Save