Skip to content

Commit

Permalink
fix path for clone
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperspencer committed Nov 30, 2023
1 parent a7f72fc commit 3f3ae16
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 @@ -33,6 +33,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 @@ -242,6 +243,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 3f3ae16

Please sign in to comment.