Skip to content

Commit

Permalink
Remove newly-dead code from currentPath removal
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhitley committed Jan 18, 2024
1 parent 10bd1fb commit 587fc90
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions pkg/commands/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package commands

import (
"os"
"path/filepath"
"strings"

"github.com/go-errors/errors"
Expand Down Expand Up @@ -61,15 +60,6 @@ func NewGitCommand(
osCommand *oscommands.OSCommand,
gitConfig git_config.IGitConfig,
) (*GitCommand, error) {
currentPath, err := os.Getwd()
if err != nil {
return nil, utils.WrapError(err)
}

// converting to forward slashes for the sake of windows (which uses backwards slashes). We want everything
// to have forward slashes internally
currentPath = filepath.ToSlash(currentPath)

repoPaths, err := git_commands.GetRepoPaths(osCommand.Cmd, version)
if err != nil {
return nil, errors.Errorf("Error getting repo paths: %v", err)
Expand Down

0 comments on commit 587fc90

Please sign in to comment.