Skip to content

Commit

Permalink
fixed bug that named all stdin uploads "untitled"
Browse files Browse the repository at this point in the history
  • Loading branch information
cjangrist committed Feb 26, 2015
1 parent 997b226 commit b22179b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func makeFolder(d *gdrive.Drive, title string, parentId string, share bool) (*dr
// Upload file to drive
func UploadStdin(d *gdrive.Drive, input io.ReadCloser, title string, parentId string, share bool, mimeType string, convert bool) error {
// File instance
f := &drive.File{Title: "untitled"}
f := &drive.File{Title: title}
// Set parent (if provided)
if parentId != "" {
p := &drive.ParentReference{Id: parentId}
Expand Down

0 comments on commit b22179b

Please sign in to comment.