index
:
gogs.git
Gogs is a painless self-hosted Git service
log msg
author
committer
range
buildscript
main
mygogs
about
summary
refs
log
tree
commit
diff
path:
root
/
models
/
migrations
/
v16.go
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
author
Unknwon <u@gogs.io>
2017-03-12 03:08:25 -0400
committer
Unknwon <u@gogs.io>
2017-03-12 03:08:25 -0400
commit
601f174ea01f8ba1f3239209595078ef29ceb72f
(
patch
)
tree
8766908babc89561a627bb596c928fbcbd35ca5a
/
models/migrations/v16.go
parent
a34c21cde37bf6b310ae3310901063df76471b10
(
diff
)
migrations/v16: only Warn if repository happens to have bad data
Diffstat
(limited to 'models/migrations/v16.go')
-rw-r--r--
models/migrations/v16.go
3
1 files changed, 2 insertions, 1 deletions
diff --git a/models/migrations/v16.go b/models/migrations/v16.go
index e44d524a..845a8762 100644
--- a/
models/migrations/v16.go
+++ b/
models/migrations/v16.go
@@ -51,7 +51,8 @@ func updateRepositorySizes(x *xorm.Engine) (err error) {
countObject, err := git.GetRepoSize(repoPath)
if err != nil {
- return fmt.Errorf("GetRepoSize: %v", err)
+ log.Warn("GetRepoSize: %v", err)
+ return nil
}
repo.Size = countObject.Size + countObject.SizePack