Commit Graph

21 Commits

Author SHA1 Message Date
Rick Olson
2e25dcc0f8 kill toml, git config does what we need 2014-06-02 09:35:22 -06:00
risk danger olson
099adaaa5e send accept/content-type headers on git-media PUT requests 2014-06-02 09:35:21 -06:00
rubyist
72bfbaa4fb Move media file creation to smudge filter rather than client 2014-06-02 09:34:33 -06:00
rubyist
509c7bb153 When the client gets media and the media file doesn't exist, ensure it is created 2014-06-02 09:34:33 -06:00
rick
330c8cbfb4 test that ObjectUrl behaves with various endpoint values 2014-06-02 09:34:33 -06:00
rick
550c5c7e27 initial config example 2014-06-02 09:34:33 -06:00
rubyist
75c180a6bf Cannot defer Close here or it crashes
The connection will be closed when doRequest() returns, but isn't being read
until Get() returns to smudge.go. This causes a crash in git-media-smudge
2014-06-02 09:34:23 -06:00
risk danger olson
e8de7a3b82 approve the credentials if the request succeeds, or reject them 2014-06-02 09:33:54 -06:00
risk danger olson
0074d2ffeb better credential error messages 2014-06-02 09:33:54 -06:00
risk danger olson
9981470fbd split credential functions to a separate file 2014-06-02 09:33:54 -06:00
risk danger olson
9d406f691e handle get errors 2014-06-02 09:33:54 -06:00
risk danger olson
cc1c530293 return the credentials 2014-06-02 09:33:54 -06:00
risk danger olson
4dd79c5225 extract the credential logic to a function and an embedded struct 2014-06-02 09:33:54 -06:00
rick
aad597d449 add support for pulling credentials out of git-credentials
/cc @arrbee
2014-06-02 09:33:54 -06:00
rick
4315cf2d1b make a common clientRequest() helper 2014-06-02 09:33:54 -06:00
rick
5c1e7df4af don't print this to stdout.
really need to setup some kind of git media log instead of
printing log messages to stdout.
2014-06-02 09:33:53 -06:00
rick
dc6afd9ddb set the content length 2014-06-02 09:33:53 -06:00
rick
f416951b02 halt immediately if the alambic api returns an unsuccessful status 2014-06-02 09:33:53 -06:00
rick
200acc782b smudge uses the gitmediaclient to download files if necessary 2014-06-02 09:33:53 -06:00
rick
c40853eba4 using http verbs for the client method names 2014-06-02 09:33:53 -06:00
rick
a3ad1a5d15 add a basic server for syncing 2014-06-02 09:33:51 -06:00