checkoutStepName returns a human-readable description for a checkout step.
(key checkoutKey)
| 591 | |
| 592 | // checkoutStepName returns a human-readable description for a checkout step. |
| 593 | func checkoutStepName(key checkoutKey) string { |
| 594 | if key.repository != "" && key.path != "" { |
| 595 | return fmt.Sprintf("%s into %s", key.repository, key.path) |
| 596 | } |
| 597 | if key.repository != "" { |
| 598 | return key.repository |
| 599 | } |
| 600 | if key.path != "" { |
| 601 | return key.path |
| 602 | } |
| 603 | return "repository" |
| 604 | } |
| 605 | |
| 606 | // fetchRefToRefspec converts a user-facing fetch pattern to a git refspec. |
| 607 | // |
no outgoing calls
no test coverage detected