Browse Source

[annex] annex web upload with version 5

cgars 8 năm trước cách đây
mục cha
commit
6c577fc411
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      models/repo_editor.go

+ 1 - 1
models/repo_editor.go

@@ -496,7 +496,7 @@ func (repo *Repository) UploadRepoFiles(doer *User, opts UploadRepoFileOptions)
 			if finfo.Size() > setting.Repository.Upload.AnexFileMinSize*gannex.MEGABYTE {
 				log.Trace("This file should be annexed: %s", upload.Name)
 				// annex init in case it isnt yet
-				if msg, err := gannex.AInit(localPath, "--version=6"); err != nil {
+				if msg, err := gannex.AInit(localPath); err != nil {
 					log.Error(1, "Annex init failed with error: %v,%s,%s", err, msg, repoFileName)
 				}
 				// worm for compatibility