Skip to content

Commit ae6b2b2

Browse files
committed
Address lint failures
Signed-off-by: Cory Dolphin <cory@nextdoor.com>
1 parent 16af669 commit ae6b2b2

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

pkg/vendir/fetch/git/git.go

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,10 @@ func (t *Git) fetch(dstPath string, tempArea ctlfetch.TempArea, bundle string) e
179179
exactRef = true
180180
} else {
181181
// Only fetch tags if not fetching exact ref
182-
argss = append(argss, []string{"config", "remote.origin.tagOpt", "--tags"})
182+
argss = append(
183+
argss,
184+
[]string{"config", "remote.origin.tagOpt", "--tags"},
185+
)
183186
}
184187
if t.opts.Depth > 0 {
185188
fetchArgs = append(fetchArgs, "--depth", strconv.Itoa(t.opts.Depth))
@@ -209,7 +212,11 @@ func (t *Git) fetch(dstPath string, tempArea ctlfetch.TempArea, bundle string) e
209212
checkoutRef = "FETCH_HEAD"
210213
}
211214

212-
_, _, err = t.cmdRunner.Run([]string{"-c", "advice.detachedHead=false", "checkout", checkoutRef}, env, dstPath)
215+
_, _, err = t.cmdRunner.Run(
216+
[]string{"-c", "advice.detachedHead=false", "checkout", checkoutRef},
217+
env,
218+
dstPath,
219+
)
213220
if err != nil {
214221
return err
215222
}

0 commit comments

Comments
 (0)