chore: correct exclude-to, include-to flag when log

main
hau 2020-11-10 23:48:41 +07:00
parent def20e9743
commit 2c83e5c50b
1 changed files with 2 additions and 2 deletions

View File

@ -108,10 +108,10 @@ func (a *action) getCommits(c *cli.Context, path string) ([]git.Commit, error) {
a.log("from revision %s", fromRev) a.log("from revision %s", fromRev)
excludeToRev := c.String(excludeToFlag) excludeToRev := c.String(excludeToFlag)
a.log("exclude to revision %s", excludeToFlag) a.log("exclude to revision %s", excludeToRev)
includeToRev := c.String(includeToFlag) includeToRev := c.String(includeToFlag)
a.log("include to revision %s", includeToFlag) a.log("include to revision %s", includeToRev)
if excludeToRev != "" && includeToRev != "" { if excludeToRev != "" && includeToRev != "" {
return nil, errors.New("excludeToFlag and includeToFlag can not appear same time") return nil, errors.New("excludeToFlag and includeToFlag can not appear same time")