Skip to content

Commit 8da9075

Browse files
authored
fix: support git debug versions (#1334)
1 parent 9478fd5 commit 8da9075

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/git/repository.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const (
3131
var (
3232
reHeadBranch = regexp.MustCompile(`HEAD -> (?P<name>.*)$`)
3333
reOriginHeadBranch = regexp.MustCompile(`ref: refs/remotes/origin/(?P<name>.*)$`)
34-
reVersion = regexp.MustCompile(`\d+\.\d+\.\d+`)
34+
reVersion = regexp.MustCompile(`\d+\.\d+\.(\d+|\w+)`)
3535
cmdPushFilesBase = []string{"git", "diff", "--name-only", "HEAD", "@{push}"}
3636
cmdPushFilesHead = []string{"git", "diff", "--name-only", "HEAD"}
3737
cmdStagedFiles = []string{"git", "diff", "--name-only", "--cached", "--diff-filter=ACMR"}

0 commit comments

Comments
 (0)