dont need to print the size
This commit is contained in:
parent
42013d681c
commit
54cd2cc46a
@ -2,7 +2,6 @@ package commands
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/cheggaaa/pb"
|
||||
"github.com/github/git-lfs/git"
|
||||
"github.com/github/git-lfs/lfs"
|
||||
"github.com/github/git-lfs/pointer"
|
||||
@ -138,11 +137,6 @@ func pushAsset(oid, filename string, index, totalFiles int) *lfs.WrappedError {
|
||||
return lfs.Errorf(err, "Error uploading file %s (%s)", filename, oid)
|
||||
}
|
||||
|
||||
stat, err := os.Stat(filename)
|
||||
if err != nil {
|
||||
return lfs.Errorf(err, "Error uploading file %s (%s)", filename, oid)
|
||||
}
|
||||
|
||||
cb, file, cbErr := lfs.CopyCallbackFile("push", filename, index, totalFiles)
|
||||
if cbErr != nil {
|
||||
Error(cbErr.Error())
|
||||
@ -152,7 +146,7 @@ func pushAsset(oid, filename string, index, totalFiles int) *lfs.WrappedError {
|
||||
defer file.Close()
|
||||
}
|
||||
|
||||
fmt.Fprintf(os.Stderr, "Uploading %s (%s)\n", filename, pb.FormatBytes(stat.Size()))
|
||||
fmt.Fprintf(os.Stderr, "Uploading %s\n", filename)
|
||||
return lfs.Upload(path, filename, cb)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user