Commit Graph

29 Commits

Author SHA1 Message Date
Taylor Blau
a2380e5564 test/push: fix test failure on old versions of Git 2016-07-14 10:29:43 -06:00
Taylor Blau
eee82e87f3 transfer: error on invalid object size from batch response 2016-07-13 13:21:03 -06:00
Taylor Blau
afc28d70c8 test/push: uncomment (1 of 1) check 2016-07-05 17:48:47 -06:00
Taylor Blau
5f36a03d26 test/push: test retrying expired objects 2016-07-05 11:24:46 -06:00
Steve Streeting
40cd7c45ed Update tests 2016-06-08 11:07:32 +01:00
risk danger olson
160ad66d3c these assertions should be more specific 2016-04-07 11:28:51 -06:00
risk danger olson
abd9b1e456 introduce an uploadContext struct to share in push and pre-push 2016-04-06 13:06:34 -06:00
Steve Streeting
23b23cd812 Catch specific case of ambiguous refs in revListShas 2016-03-31 16:38:55 +01:00
risk danger olson
dceb6611c7 guard against invalid remotes passed to git lfs push 2016-02-03 13:06:05 -07:00
rick
54601c6d34 introduce calc_oid() helper for integration tests 2015-09-21 11:50:22 -06:00
Rick Olson
bff5aa7b7e 'grep -c' is less brittle than 'wc -l' 2015-09-09 16:09:56 -06:00
Rick Olson
df2007d81c teach 'push --all' to skip objects not in .git/lfs/objects but already on the server 2015-09-09 14:58:58 -06:00
Rick Olson
1ff901bb70 rework 'push --all' so it's consistent with fetch 2015-09-09 14:18:51 -06:00
rick
174cda9dc4 add a test for --all 2015-09-08 15:01:47 -06:00
rick
ffca2e08ba update push dry-run output so paths and oids line up. 2015-09-08 14:47:13 -06:00
risk danger olson
8491e60e61 default to the batch API if lfs.batch is not set 2015-09-01 14:31:51 -06:00
Steve Streeting
1cacc9532f Fix failure to push non-current branch #606
Use of CurrentRef as 'left' doesn't work when pushing any other branch.
Instead use specified ref vs remote state.
2015-08-26 17:47:11 +01:00
Steve Streeting
41cdd013c2 Add oids to push --dry-run output otherwise can't see modifications 2015-08-26 17:47:11 +01:00
Steve Streeting
766c22dfa9 Add enhanced test setup tools for 'go test' and integration tests
* Use test.Repo and AddCommits to set up complex multi-branch tests
* Can commit in the past for history tests, branch, merge and tag
* Can generate random data for files or use what you give it
* Returns full detail of the commits created including SHAs and OIDs
* Can pipe JSON from a batch file into lfstest-testutils to get the same
  functionality in acceptance tests
* get_date bash util to create commit dates easily on BSD/Mac and GNU
* see test-push.sh for bash example and scanner_git_test.go for go test
2015-08-25 17:39:33 +01:00
Rick Olson
202ae122d4 update the shebang lines to use bash 2015-07-29 20:37:31 -06:00
rubyist
ab5b35a8c0 Progress meter needs to be more dynamic for batches of n
This removes the `pb` based progress bar for the transfer queue and add
a simpler custom bar. pb really wants to know total counts and byte
sizes up front but when doing batches of n we would prefer to not know
that. This is due to the fact that the batcher will block until it is
drained instead of processing all pointers and storing them in memory
while transfer operations run. This also clarifies when files are
skipped because the server already has them. Progress output here
contains the number of finished transfers/bytes, the number of
transfers/bytes currently in the queue, and the number of files skipped,
if any.
2015-07-27 12:43:41 -04:00
Lars Schneider
dee8383c7a Revert "assert_file_line_count" test helper 2015-07-06 15:06:10 +02:00
Lars Schneider
c84c7d05ae Add assertion to check the number of output lines. 2015-07-06 13:48:57 +02:00
Lars Schneider
cd3844ab9f Cleanup test case. 2015-07-06 13:48:57 +02:00
Lars Schneider
d55f813f48 Rename command line parameter "objectid" to "object-id".
https://github.com/github/git-lfs/pull/449/files#r33897536
2015-07-06 13:46:44 +02:00
Lars Schneider
d24ab635ef Add option to push object ID(s) directly. 2015-06-28 23:13:44 +08:00
Rick Olson
71ebdfdbff fix push and pre-push tests 2015-05-27 14:18:02 -06:00
Rick Olson
e2b2716853 == is bash only, use = for string comparisons 2015-05-26 16:15:52 -06:00
Rick Olson
aa563200a8 port push tests 2015-05-26 15:09:24 -06:00