From 54cd2cc46a0181cfbd32c0dfac2a0e71703a8b72 Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Wed, 8 Apr 2015 16:55:54 +0200 Subject: [PATCH] dont need to print the size --- commands/command_push.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/commands/command_push.go b/commands/command_push.go index ff88837e..fa8b1104 100644 --- a/commands/command_push.go +++ b/commands/command_push.go @@ -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) }