We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99cb3ee commit a98122fCopy full SHA for a98122f
git.go
@@ -216,7 +216,7 @@ func (g *GitClient) GitCryptUnlock(base64key string) error {
216
return fmt.Errorf("failed to decode git-crypt key")
217
}
218
keyPath := filepath.Join(keyDir, "git-crypt-key")
219
- if err := ioutil.WriteFile(keyPath, decodedKey, 600); err != nil {
+ if err := ioutil.WriteFile(keyPath, decodedKey, os.FileMode(0600)); err != nil {
220
return fmt.Errorf("failed to write git-crypt key to file: %s", err)
221
222
if err := g.command("git-crypt", "unlock", keyPath).Run(); err != nil {
0 commit comments