diff --git a/commands/command_pre_push.go b/commands/command_pre_push.go index 87be31c6..a77458c2 100644 --- a/commands/command_pre_push.go +++ b/commands/command_pre_push.go @@ -76,7 +76,7 @@ func prePushCommand(cmd *cobra.Command, args []string) { continue } - if err := scanLeftOrAll(gitscanner, ctx, left); err != nil { + if err := uploadLeftOrAll(gitscanner, ctx, left); err != nil { Print("Error scanning for Git LFS files in %q", left) ExitWithError(err) } diff --git a/commands/command_push.go b/commands/command_push.go index 9bf2c9ca..7c4985f5 100644 --- a/commands/command_push.go +++ b/commands/command_push.go @@ -35,7 +35,7 @@ func uploadsBetweenRefAndRemote(ctx *uploadContext, refnames []string) { } for _, ref := range refs { - if err = scanLeftOrAll(gitscanner, ctx, ref.Name); err != nil { + if err = uploadLeftOrAll(gitscanner, ctx, ref.Name); err != nil { Print("Error scanning for Git LFS files in the %q ref", ref.Name) ExitWithError(err) } @@ -44,7 +44,7 @@ func uploadsBetweenRefAndRemote(ctx *uploadContext, refnames []string) { ctx.Await() } -func scanLeftOrAll(g *lfs.GitScanner, ctx *uploadContext, ref string) error { +func uploadLeftOrAll(g *lfs.GitScanner, ctx *uploadContext, ref string) error { var multiErr error cb := func(p *lfs.WrappedPointer, err error) { if err != nil {