From edd8a77268d8c203405f9625d15aeb014b53f265 Mon Sep 17 00:00:00 2001 From: rubyist Date: Tue, 24 Jun 2014 10:30:04 -0400 Subject: [PATCH 1/2] Update docs to remove references to `sync`, show `push` --- docs/README.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/docs/README.md b/docs/README.md index a723ec69..a99869da 100644 --- a/docs/README.md +++ b/docs/README.md @@ -120,9 +120,16 @@ normal. After committing, `git show` will show the file's meta data: +84ff327f80500d3266bd830891ede1e4fd18b9169936a066573f9b230597a696 \ No newline at end of file -Now, you can run the `git media sync` command. This uploads any queued files to -the Git Media endpoint. +Now, when you run `git push`, all queued files to will be synced to the +Git Media endpoint. - $ git media sync + $ git push origin master Sending my.zip - 12.00 MB / 12.00 MB [========================================================] 100.00 % + 12.58 MB / 12.58 MB 100.00 % + Counting objects: 2, done. + Delta compression using up to 8 threads. + Compressing objects: 100% (5/5), done. + Writing objects: 100% (5/5), 548 bytes | 0 bytes/s, done. + Total 5 (delta 1), reused 0 (delta 0) + To https://github.com/github/gitmediatest + 67fcf6a..47b2002 master -> master From 5ceb05c39fe448a57cf49de2844f6516daadfc21 Mon Sep 17 00:00:00 2001 From: rubyist Date: Tue, 24 Jun 2014 10:30:33 -0400 Subject: [PATCH 2/2] Insert a newline for better output formatting --- commands/command_push.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/commands/command_push.go b/commands/command_push.go index 062d7bb4..11916758 100644 --- a/commands/command_push.go +++ b/commands/command_push.go @@ -1,6 +1,7 @@ package commands import ( + "fmt" "github.com/github/git-media/gitmedia" "github.com/github/git-media/gitmediaclient" "strings" @@ -38,10 +39,12 @@ func (c *PushCommand) Run() { if err != nil { Panic(err, "error uploading file %s/%s", sha, filename) } + fmt.Printf("\n") if err := q.Del(id); err != nil { Panic(err, "error removing %s from queue", sha) } + return nil }) }