"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "routers/user/setting/profile.go" between
gitea-1.13.1.tar.gz and gitea-1.13.2.tar.gz

About: Gitea allows to set up a self-hosted code hosting Git service (a fork of Gogs).

profile.go  (gitea-1.13.1):profile.go  (gitea-1.13.2)
skipping to change at line 230 skipping to change at line 230
ctxUser := ctx.User ctxUser := ctx.User
count := 0 count := 0
if adoptOrDelete { if adoptOrDelete {
repoNames := make([]string, 0, setting.UI.Admin.UserPagingNum) repoNames := make([]string, 0, setting.UI.Admin.UserPagingNum)
repos := map[string]*models.Repository{} repos := map[string]*models.Repository{}
// We're going to iterate by pagesize. // We're going to iterate by pagesize.
root := filepath.Join(models.UserPath(ctxUser.Name)) root := filepath.Join(models.UserPath(ctxUser.Name))
if err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error { if err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
if err != nil { if err != nil {
if os.IsNotExist(err) {
return nil
}
return err return err
} }
if !info.IsDir() || path == root { if !info.IsDir() || path == root {
return nil return nil
} }
name := info.Name() name := info.Name()
if !strings.HasSuffix(name, ".git") { if !strings.HasSuffix(name, ".git") {
return filepath.SkipDir return filepath.SkipDir
} }
name = name[:len(name)-4] name = name[:len(name)-4]
 End of changes. 1 change blocks. 
0 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)