Skip to content

Commit ce7cfe8

Browse files
committed
add comment
1 parent da4d94a commit ce7cfe8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

services/repository/files/upload.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ func UploadRepoFiles(ctx context.Context, repo *repo_model.Repository, doer *use
107107
}
108108

109109
var attributesMap map[string]*attribute.Attributes
110+
// when uploading to an empty repo, the old branch doesn't exist, but some "global gitattributes" or "info/attributes" may exist
110111
if setting.LFS.StartServer {
111112
attributesMap, err = attribute.CheckAttributes(ctx, t.gitRepo, "" /* use temp repo's working dir */, attribute.CheckAttributeOpts{
112113
Attributes: []string{attribute.Filter},

0 commit comments

Comments
 (0)