Unverified Commit 66e0c0b4 authored by Matthew Fisher's avatar Matthew Fisher Committed by GitHub

Merge pull request #6620 from beautytiger/dev-191009-file_mode

fix file mode,it should be octal expressed
parents 519ccac2 ecf9afbe
...@@ -241,7 +241,7 @@ func TestWriteFile(t *testing.T) { ...@@ -241,7 +241,7 @@ func TestWriteFile(t *testing.T) {
t.Errorf("failed to create test-file (%v)", err) t.Errorf("failed to create test-file (%v)", err)
} }
defer os.Remove(repoFile.Name()) defer os.Remove(repoFile.Name())
if err := sampleRepository.WriteFile(repoFile.Name(), 744); err != nil { if err := sampleRepository.WriteFile(repoFile.Name(), 0744); err != nil {
t.Errorf("failed to write file (%v)", err) t.Errorf("failed to write file (%v)", err)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment