소스 검색

[annex] annex web upload with version 5

cgars 8 년 전
부모
커밋
6c577fc411
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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