From 5c47cdae2159a62cee63392f4fbb74af8017ca32 Mon Sep 17 00:00:00 2001 From: Miguel Ramos Date: Tue, 9 Aug 2022 14:46:01 +0100 Subject: [PATCH] fix: changed git diff branch commit list (#25) Co-authored-by: Miguel Ramos --- utils/git.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/git.go b/utils/git.go index 263b18b..34a63cd 100644 --- a/utils/git.go +++ b/utils/git.go @@ -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()