|
@@ -486,7 +486,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
|