Browse Source

提交代码

Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/537/head
zouap 3 years ago
parent
commit
7291d4cf4e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/git/repo_commit.go

+ 1
- 1
modules/git/repo_commit.go View File

@@ -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
}


Loading…
Cancel
Save