|
|
@@ -207,7 +207,7 @@ func (repo *Repository) GetCommitByPath(relpath string) (*Commit, error) { |
|
|
|
} |
|
|
|
|
|
|
|
func (repo *Repository) GetCommitByPathAndDays(relpath string, days int) (*list.List, error) { |
|
|
|
stdout, err := NewCommand("log", "-1", prettyLogFormat, "--", relpath, "--since="+fmt.Sprint(days)+".days").RunInDirBytes(repo.Path) |
|
|
|
stdout, err := NewCommand("log", "-1", prettyLogFormat, "--since="+fmt.Sprint(days)+".days").RunInDirBytes(relpath) |
|
|
|
if err != nil { |
|
|
|
return nil, err |
|
|
|
} |
|
|
|