diff options
| author | Rose Hogenson <rosehogenson@posteo.net> | 2026-09-03 07:42:44 -0700 |
|---|---|---|
| committer | Rose Hogenson <rosehogenson@posteo.net> | 2026-09-03 07:43:02 -0700 |
| commit | 153ca5aa139516ef3222ecf0168b25b0857a261b (patch) | |
| tree | e335f29029c24ea2681bb2b66ffc0166be7debef /git-shell-commands.go | |
| parent | 0fc1cd727c327d50c99a772f05135ed9d09bd153 (diff) | |
| download | git-shell-commands-153ca5aa139516ef3222ecf0168b25b0857a261b.tar.zst | |
Create description file with correct permissions
Diffstat (limited to 'git-shell-commands.go')
| -rw-r--r-- | git-shell-commands.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |
