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

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

fix file mode,it should be octal expressed
Showing with 1 addition and 1 deletion
+1 -1
......@@ -241,7 +241,7 @@ func TestWriteFile(t *testing.T) {
t.Errorf("failed to create test-file (%v)", err)
}
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)
}
......
Supports Markdown
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