aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.go2
-rw-r--r--git_hooks_handle.go4
-rw-r--r--git_misc.go8
-rw-r--r--git_ref.go6
-rw-r--r--http_server.go2
-rw-r--r--ssh_handle_receive_pack.go2
-rw-r--r--ssh_utils.go2
-rw-r--r--url.go4
8 files changed, 15 insertions, 15 deletions
diff --git a/config.go b/config.go
index 13ae7e9..78c2cc4 100644
--- a/config.go
+++ b/config.go
@@ -12,7 +12,7 @@ import (
var database *pgxpool.Pool
-var err_unsupported_database_type = errors.New("Unsupported database type")
+var err_unsupported_database_type = errors.New("unsupported database type")
var config struct {
HTTP struct {
diff --git a/git_hooks_handle.go b/git_hooks_handle.go
index 00e2627..64d327e 100644
--- a/git_hooks_handle.go
+++ b/git_hooks_handle.go
@@ -14,8 +14,8 @@ import (
)
var (
- err_get_fd = errors.New("Unable to get file descriptor")
- err_get_ucred = errors.New("Failed getsockopt")
+ err_get_fd = errors.New("unable to get file descriptor")
+ err_get_ucred = errors.New("failed getsockopt")
)
// hooks_handle_connection handles a connection from git_hooks_client via the
diff --git a/git_misc.go b/git_misc.go
index db5ff89..e528888 100644
--- a/git_misc.go
+++ b/git_misc.go
@@ -13,9 +13,9 @@ import (
)
var (
- err_getting_commit_tree = errors.New("Error getting commit tree")
- err_getting_patch_of_commit = errors.New("Error getting patch of commit")
- err_getting_parent_commit_object = errors.New("Error getting parent commit object")
+ err_getting_commit_tree = errors.New("error getting commit tree")
+ err_getting_patch_of_commit = errors.New("error getting patch of commit")
+ err_getting_parent_commit_object = errors.New("error getting parent commit object")
)
// open_git_repo opens a git repository by group and repo name.
@@ -59,7 +59,7 @@ func build_display_git_tree(tree *object.Tree) []display_git_tree_entry_t {
return display_git_tree
}
-var err_get_recent_commits = errors.New("Error getting recent commits")
+var err_get_recent_commits = errors.New("error getting recent commits")
func get_recent_commits(repo *git.Repository, head_hash plumbing.Hash, number_of_commits int) (recent_commits []*object.Commit, err error) {
commit_iter, err := repo.Log(&git.LogOptions{From: head_hash})
diff --git a/git_ref.go b/git_ref.go
index dbf9d7e..13b5655 100644
--- a/git_ref.go
+++ b/git_ref.go
@@ -9,9 +9,9 @@ import (
)
var (
- err_getting_tag_reference = errors.New("Error getting tag reference")
- err_getting_branch_reference = errors.New("Error getting branch reference")
- err_getting_head = errors.New("Error getting HEAD")
+ err_getting_tag_reference = errors.New("error getting tag reference")
+ err_getting_branch_reference = errors.New("error getting branch reference")
+ err_getting_head = errors.New("error getting HEAD")
)
// get_ref_hash_from_type_and_name returns the hash of a reference given its
diff --git a/http_server.go b/http_server.go
index 077c63e..c762758 100644
--- a/http_server.go
+++ b/http_server.go
@@ -214,4 +214,4 @@ func (router *http_router_t) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
}
-var err_bad_request = errors.New("Bad Request")
+var err_bad_request = errors.New("bad request")
diff --git a/ssh_handle_receive_pack.go b/ssh_handle_receive_pack.go
index 72ac3de..2eb647d 100644
--- a/ssh_handle_receive_pack.go
+++ b/ssh_handle_receive_pack.go
@@ -10,7 +10,7 @@ import (
"go.lindenii.runxiyu.org/lindenii-common/cmap"
)
-var err_unauthorized_push = errors.New("You are not authorized to push to this repository")
+var err_unauthorized_push = errors.New("you are not authorized to push to this repository")
type pack_to_hook_t struct {
session *glider_ssh.Session
diff --git a/ssh_utils.go b/ssh_utils.go
index 61fdf33..757fbc5 100644
--- a/ssh_utils.go
+++ b/ssh_utils.go
@@ -7,7 +7,7 @@ import (
"strings"
)
-var err_ssh_illegal_endpoint = errors.New("Illegal endpoint during SSH access")
+var err_ssh_illegal_endpoint = errors.New("illegal endpoint during SSH access")
func get_repo_path_perms_from_ssh_path_pubkey(ctx context.Context, ssh_path string, ssh_pubkey string) (repo_path string, direct_access bool, err error) {
segments := strings.Split(strings.TrimPrefix(ssh_path, "/"), "/")
diff --git a/url.go b/url.go
index 1fcedb3..0265fc6 100644
--- a/url.go
+++ b/url.go
@@ -10,8 +10,8 @@ import (
)
var (
- err_duplicate_ref_spec = errors.New("Duplicate ref spec")
- err_no_ref_spec = errors.New("No ref spec")
+ err_duplicate_ref_spec = errors.New("duplicate ref spec")
+ err_no_ref_spec = errors.New("no ref spec")
)
func get_param_ref_and_type(r *http.Request) (ref_type, ref string, err error) {