Skip to content

Commit 3a4ae60

Browse files
Update pkg/source/git.go
Co-authored-by: Sergio Durigan Junior <github@sergiodj.net> Signed-off-by: Justin Vreeland <justinvreeland@users.noreply.github.com>
1 parent 6327718 commit 3a4ae60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/source/git.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func parseCherryPicks(input string) ([]string, error) {
120120

121121
// Strip optional branch prefix (we don't need it with full clone)
122122
commit := pickSpec
123-
if slashIdx := strings.Index(pickSpec, "/"); slashIdx != -1 {
123+
if slashIdx := strings.LastIndex(pickSpec, "/"); slashIdx != -1 {
124124
commit = pickSpec[slashIdx+1:]
125125
}
126126

0 commit comments

Comments
 (0)