Satisfy Staticcheck

This commit is contained in:
Thomas Miceli
2023-04-26 23:13:11 +02:00
parent 09507500a9
commit 91db4dcd30
6 changed files with 29 additions and 18 deletions

View File

@ -272,6 +272,9 @@ func GetGitVersion() (string, error) {
func copyFiles(repositoryPath string) error {
f1, err := os.OpenFile(filepath.Join(repositoryPath, "git-daemon-export-ok"), os.O_RDONLY|os.O_CREATE, 0644)
if err != nil {
return err
}
defer f1.Close()
preReceiveDst, err := os.OpenFile(filepath.Join(repositoryPath, "hooks", "pre-receive"), os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0744)