mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Fix ref comment from commit create empty feed
This commit is contained in:
		@@ -3,7 +3,7 @@ Gogs - Go Git Service [
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
##### Current version: 0.9.3
 | 
					##### Current version: 0.9.4
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| Web | UI  | Preview  |
 | 
					| Web | UI  | Preview  |
 | 
				
			||||||
|:-------------:|:-------:|:-------:|
 | 
					|:-------------:|:-------:|:-------:|
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								gogs.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								gogs.go
									
									
									
									
									
								
							@@ -17,7 +17,7 @@ import (
 | 
				
			|||||||
	"github.com/gogits/gogs/modules/setting"
 | 
						"github.com/gogits/gogs/modules/setting"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const APP_VER = "0.9.3.0309"
 | 
					const APP_VER = "0.9.4.0311"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func init() {
 | 
					func init() {
 | 
				
			||||||
	runtime.GOMAXPROCS(runtime.NumCPU())
 | 
						runtime.GOMAXPROCS(runtime.NumCPU())
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -202,10 +202,12 @@ func createComment(e *xorm.Session, opts *CreateCommentOptions) (_ *Comment, err
 | 
				
			|||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Notify watchers for whatever action comes in
 | 
						// Notify watchers for whatever action comes in, ignore if no action type
 | 
				
			||||||
 | 
						if act.OpType > 0 {
 | 
				
			||||||
		if err = notifyWatchers(e, act); err != nil {
 | 
							if err = notifyWatchers(e, act); err != nil {
 | 
				
			||||||
			return nil, fmt.Errorf("notifyWatchers: %v", err)
 | 
								return nil, fmt.Errorf("notifyWatchers: %v", err)
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return comment, nil
 | 
						return comment, nil
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -97,6 +97,7 @@ func GetRandomString(n int, alphabets ...byte) string {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// http://code.google.com/p/go/source/browse/pbkdf2/pbkdf2.go?repo=crypto
 | 
					// http://code.google.com/p/go/source/browse/pbkdf2/pbkdf2.go?repo=crypto
 | 
				
			||||||
 | 
					// FIXME: use https://godoc.org/golang.org/x/crypto/pbkdf2?
 | 
				
			||||||
func PBKDF2(password, salt []byte, iter, keyLen int, h func() hash.Hash) []byte {
 | 
					func PBKDF2(password, salt []byte, iter, keyLen int, h func() hash.Hash) []byte {
 | 
				
			||||||
	prf := hmac.New(h, password)
 | 
						prf := hmac.New(h, password)
 | 
				
			||||||
	hashLen := prf.Size()
 | 
						hashLen := prf.Size()
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1 +1 @@
 | 
				
			|||||||
0.9.3.0309
 | 
					0.9.4.0311
 | 
				
			||||||
		Reference in New Issue
	
	Block a user