summaryrefslogtreecommitdiffstats
path: root/git-shell-commands.go
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2026-09-03 07:42:44 -0700
committerRose Hogenson <rosehogenson@posteo.net>2026-09-03 07:43:02 -0700
commit153ca5aa139516ef3222ecf0168b25b0857a261b (patch)
treee335f29029c24ea2681bb2b66ffc0166be7debef /git-shell-commands.go
parent0fc1cd727c327d50c99a772f05135ed9d09bd153 (diff)
downloadgit-shell-commands-main.tar.zst
Create description file with correct permissionsHEADmain
Diffstat (limited to 'git-shell-commands.go')
-rw-r--r--git-shell-commands.go2
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
}