diff --git a/.vscode/launch.json b/.vscode/launch.json index 6699eb0..1bc8c5e 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -15,7 +15,7 @@ }, "args": [ "--root", - "../sublime-ui", + "../sublime-sdk", "action", "--type", "branch", diff --git a/utils/git.go b/utils/git.go index d699b02..263b18b 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", "main..HEAD") gitCmd.Dir = path output, err := gitCmd.CombinedOutput()