Commit Graph

942 Commits

Author SHA1 Message Date
Rick Olson
42013d681c fix the progress bar output by calling Finish()
[master 6bc3a3b] booya
 1 file changed, 1 insertion(+), 1 deletion(-)
Uploading test1.dat (19.07 MB)
19.07 MB / 19.07 MB  100.00 %
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 363 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
2015-04-08 16:53:20 +02:00
Rick Olson
5050f055c1 ship v0.5.0 2015-04-08 05:45:30 +02:00
Rick Olson
f417fa5ee6 print ssh error to tracerx so it can try hitting the api directly 2015-03-30 00:00:34 -06:00
Rick Olson
6b95a6e40b merge ssh header if the git remote is an ssh endpoint 2015-03-29 17:13:50 -06:00
Rick Olson
9c67ba5a58 promote ObjectUrl to a package level function 2015-03-29 13:16:28 -06:00
Rick Olson
514d947c8e teach config.Endpoint() to return an Endpoint struct with optional ssh info
$ git lfs env
Endpoint=https://172.28.128.4/ghe-admin/git-lfs-test.git/info/lfs
  SSH=git@172.28.128.4:ghe-admin/git-lfs-test.git
LocalWorkingDir=/Users/rick/github/git-lfs-test
LocalGitDir=/Users/rick/github/git-lfs-test/.git
LocalMediaDir=/Users/rick/github/git-lfs-test/.git/lfs/objects
TempDir=/Users/rick/github/git-lfs-test/.git/lfs/tmp
2015-03-27 16:36:33 -06:00
Rick Olson
f131898b77 rename these test methods 2015-03-27 16:21:08 -06:00
Rick Olson
dd17828e4a first v0.5.0 build 2015-03-27 12:13:03 -06:00
Rick Olson
10b02581cd just dup the line 2015-03-27 09:53:02 -06:00
Rick Olson
f134d93464 remove debugging prints 2015-03-26 12:48:35 -06:00
Rick Olson
430d95650c support redirects on POST requests 2015-03-26 12:46:33 -06:00
Rick Olson
29aa653771 don't set auth on redirections if the scheme or host do not match 2015-03-26 11:19:59 -06:00
Rick Olson
588a4d9f20 support multiple redirects 2015-03-26 11:13:04 -06:00
Rick Olson
6b6a718511 support GET redirects 2015-03-26 11:10:17 -06:00
Rick Olson
474ba75e89 remove unused error 2015-03-26 11:07:37 -06:00
Rick Olson
a56b11dd42 we don't need a non-redirecting http client anymore 2015-03-26 10:56:25 -06:00
Rick Olson
b4f99ea81e dont show tracing messages without GIT_CURL_VERBOSE 2015-03-22 14:13:37 -06:00
Rick Olson
5b2e9c39c5 change remote.{name}.lfs config to remote.{name}.lfs_url 2015-03-22 13:15:20 -06:00
Rick Olson
9d406f646e merge 2015-03-22 13:03:38 -06:00
Rick Olson
e69c476bd9 fix some places where we're still referring to 'git media' 2015-03-22 13:02:33 -06:00
Rick Olson
7369c01d82 fix weird variable name 2015-03-22 12:32:22 -06:00
Rick Olson
1f60f98f53 count all uploaded and downloaded bodies when tracing http calls 2015-03-22 12:30:54 -06:00
Rick Olson
2c57372587 make sure we close response bodies correctly 2015-03-22 12:30:27 -06:00
Rick Olson
61175c39a7 trace the counted bytes when Close() is called 2015-03-22 12:13:52 -06:00
Rick Olson
3fc67edd28 embed the structs 2015-03-22 12:12:04 -06:00
Rick Olson
255067846f set the content length for all of the Upload() requests 2015-03-21 11:30:31 -06:00
Rick Olson
bff10be771 redundant tracerx messages 2015-03-21 11:28:43 -06:00
Rick Olson
d743ff4db2 Upload() looks for http 200, not 202 2015-03-21 11:28:33 -06:00
Rick Olson
1d9edbb8df use New64 so we can pass an int64 to the progress bar
3544a53d32/pb.go (L45-L50)
2015-03-20 12:06:41 -06:00
Rick Olson
cbf8a83eb3 test CopyCallback in Upload() 2015-03-20 12:01:43 -06:00
Rick Olson
e95c19c7e3 replace fmt.Printf with tracerx.Printf 2015-03-20 11:55:24 -06:00
Rick Olson
3b408a0d64 test that Upload() skips the PUT on a 202 status 2015-03-20 11:13:16 -06:00
Rick Olson
c5aa13a66a allow application/json responses 2015-03-20 11:10:38 -06:00
Rick Olson
4872f51eea more client upload and download tests 2015-03-19 20:56:56 -06:00
Rick Olson
91f3491076 check authorization header in download tests 2015-03-19 20:47:35 -06:00
Rick Olson
81d763988f unused 2015-03-19 20:37:34 -06:00
Rick Olson
cd87658cb1 implement uploads and downloads 2015-03-19 19:55:40 -06:00
Rick Olson
55fe5b93fc implement http response handling 2015-03-19 17:26:48 -06:00
Rick Olson
d5a6bf892b restart client with simple getCreds() 2015-03-19 15:16:52 -06:00
Rick Olson
88a22312a5 ObjectsUrl() can now return an error 2015-03-19 14:39:44 -06:00
Rick Olson
ce06758418 change info/media suffix to info/lfs 2015-03-19 14:18:31 -06:00
Rick Olson
e37b695477 rename hawser => git-lfs 2015-03-19 13:30:55 -06:00