1
0
mirror of https://github.com/helm/chart-releaser.git synced 2026-02-05 09:45:23 +01:00

DOCS fix commit-ish typo (#426)

Signed-off-by: Matt Clegg <m@cle.gg>
This commit is contained in:
Matt Clegg
2024-06-28 14:09:21 +01:00
committed by GitHub
parent a31e38a2fa
commit d83b45b707
2 changed files with 4 additions and 4 deletions

View File

@@ -23,13 +23,13 @@ import (
type Git struct{}
// AddWorktree creates a new Git worktree with a detached HEAD for the given committish and returns its path.
func (g *Git) AddWorktree(workingDir string, committish string) (string, error) {
// AddWorktree creates a new Git worktree with a detached HEAD for the given commit-ish and returns its path.
func (g *Git) AddWorktree(workingDir string, commitIsh string) (string, error) {
dir, err := os.MkdirTemp("", "chart-releaser-")
if err != nil {
return "", err
}
command := exec.Command("git", "worktree", "add", "--detach", dir, committish)
command := exec.Command("git", "worktree", "add", "--detach", dir, commitIsh)
if err := runCommand(workingDir, command); err != nil {
return "", err

View File

@@ -53,7 +53,7 @@ type GitHub interface {
}
type Git interface {
AddWorktree(workingDir string, committish string) (string, error)
AddWorktree(workingDir string, commitIsh string) (string, error)
RemoveWorktree(workingDir string, path string) error
Add(workingDir string, args ...string) error
Commit(workingDir string, message string) error