Skip to content
Permalink
Browse files

cmd/blobstash-uploader: set a user agent while doing a snapshot

  • Loading branch information...
tsileo committed Apr 4, 2019
1 parent 3615c6a commit 9c695bae79360c8b68104083635b2ee309fbc893
Showing with 3 additions and 1 deletion.
  1. +3 −1 cmd/blobstash-uploader/blobstash-uploader.go
@@ -12,6 +12,8 @@ import (
"a4.io/blobstash/pkg/filetree/writer"
)

const ua = "blobstash-uploader v1"

func usage() {
fmt.Printf("Usage: %s [OPTIONS] [FSNAME] [DIRPATH]\n", os.Args[0])
flag.PrintDefaults()
@@ -84,7 +86,7 @@ func main() {
}

// Make a snaphot/create a FS entry for the given tree
rev, err := ft.MakeSnapshot(m.Hash, fsName, snapMessage)
rev, err := ft.MakeSnapshot(m.Hash, fsName, snapMessage, ua)
if err != nil {
fmt.Printf("failed to create snapshot: %v\n", err)
os.Exit(1)

0 comments on commit 9c695ba

Please sign in to comment.
You can’t perform that action at this time.