From 153ca5aa139516ef3222ecf0168b25b0857a261b Mon Sep 17 00:00:00 2001 From: Rose Hogenson Date: Thu, 3 Sep 2026 07:42:44 -0700 Subject: Create description file with correct permissions --- git-shell-commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-shell-commands.go b/git-shell-commands.go index cbcc32c..8348080 100644 --- a/git-shell-commands.go +++ b/git-shell-commands.go @@ -112,7 +112,7 @@ Delete the git repo named REPO. func setRepoDescription(repo, description string) error { descriptionPath := filepath.Join(codeDir, repo, "description") fmt.Fprintf(os.Stderr, "echo %s > %s\n", shellQuote(description), shellQuote(descriptionPath)) - desc, err := os.Create(descriptionPath) + desc, err := os.OpenFile(descriptionPath, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644) if err != nil { return err } -- cgit v1.3.1