Skip to content

Commit

Permalink
fix: changed git diff branch commit list (#25)
Browse files Browse the repository at this point in the history
Co-authored-by: Miguel Ramos <miguel.ramos@websublime.dev>
  • Loading branch information
miguelramos authored Aug 9, 2022
1 parent 2bfa943 commit 5c47cda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func InitGit(path string) (string, error) {
}

func GetBranchList(path string) (string, error) {
gitCmd := exec.Command("git", "--no-pager", "diff", "--name-only", "main..HEAD")
gitCmd := exec.Command("git", "--no-pager", "diff", "--name-only", "origin/main", "HEAD")
gitCmd.Dir = path
output, err := gitCmd.CombinedOutput()

Expand Down

0 comments on commit 5c47cda

Please sign in to comment.