Skip to content

Commit

Permalink
fix path for clone (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperspencer authored Dec 3, 2023
1 parent 52a834b commit ccb0c58
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions local/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ var (
// Locally TODO.
func Locally(repo types.Repo, l types.Local, dry bool) bool {
sub = logger.CreateSubLogger("stage", "locally", "path", l.Path)
originPath, _ := os.Getwd()
if l.LFS {
g, err := gitcmd.New()
if err != nil {
Expand Down Expand Up @@ -277,6 +278,11 @@ func Locally(repo types.Repo, l types.Local, dry bool) bool {

x = 5
}
if err := os.Chdir(originPath); err != nil {
sub.Error().
Msg(err.Error())
return false
}
return true
}

Expand Down

0 comments on commit ccb0c58

Please sign in to comment.