diff options
| -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 } |
