Commit Graph

21 Commits

Author SHA1 Message Date
rick
43e9f379ce fix behavior of 7 commands when run outside git repo 2015-09-08 09:29:53 -06:00
Steve Streeting
799ee1e534 Test for fetch --all 2015-09-07 15:45:03 +01:00
Steve Streeting
7519896f98 Change default fetch recent to include remote refs from current remote
Previously only local branches were included by default. However this
way is more useful in practice; otherwise when you needed to checkout
or pull new commits from the remote you were forced to fetch on demand;
fetch --recent wouldn't pick them up without including the remote
branches. While you *can* create / update local branches without
checking out manually (e.g. git reset to manually fast-forward) to make
fetch --recent then pickup the changes from local branches, it's
too cumbersome. Including remote refs by default makes more sense for
most people, respecting the idea that you do this as an optimistic fetch
to save time at checkout/pull. However, limit the operation to the
current remote only (which makes sense anyway).
2015-09-01 12:37:24 +01:00
Steve Streeting
8cf2be78cf Add an additional test to prove that fetch does snapshot unchanged files
Because we changed fetch command to use --no-walk, prove that files which
were not changed at that ref but had state from previous commits are
included, i.e. that the fetch is a complete snapshot of the state at
that ref.
2015-08-28 16:09:22 +01:00
Steve Streeting
3c62a2a399 Add tests for fetch --recent with remote branches 2015-08-27 17:09:40 +01:00
Steve Streeting
88b362c352 Tests for fetch --recent 2015-08-27 15:31:58 +01:00
Steve Streeting
111e674d38 First fetch --recent integration test 2015-08-26 16:23:09 +01:00
Steve Streeting
bcc14cf55b Push now works properly for other branches 2015-08-26 14:41:59 +01:00
Steve Streeting
aba8f6dd10 Real fetch test - currently failing because of https://github.com/github/git-lfs/issues/606 2015-08-25 16:57:28 +01:00
Steve Streeting
3d2ed18230 More representative example of feeding JSON into lfstest-testutils 2015-08-25 10:57:45 +01:00
Steve Streeting
2fa44e06d5 Create lfstest-testutils tool to create more complex test cases easily in shell
Right now can create commits using JSON version of []*test.CommitInput
2015-08-24 17:54:56 +01:00
Steve Streeting
b5df63c071 Add optional remote arg to fetch & pull, and default to tracking remote
The first arg to fetch & pull is now a remote. In addition, the default
remote if you don't specify is now the tracking remote as in `git pull`
if it exists, and origin if that's not set. This makes it more consistent
with the underlying git workflow especially in triangular fork setups.
2015-08-13 17:22:29 +01:00
Steve Streeting
451b03edf9 Adding --include and --exclude args to fetch/pull 2015-08-10 17:00:10 +01:00
Steve Streeting
4675404f33 Add lfs.fetchinclude and lfs.fetchexclude gitconfig options
These include or exclude lists of paths (matching as per gitignore) in
the fetch to optimise downloading.
2015-08-10 17:00:10 +01:00
Steve Streeting
5e654f23a3 Fetch tests should be checking that content exists, not pointer exists
assert_pointer only checked that a pointer existed, not that the content was present. Add assert_local_object and refute_local_object to test helpers
2015-08-06 12:12:58 +01:00
risk danger olson
bcf15d9ce9 Merge pull request #540 from github/fix-test-race-condition
Fix test race condition
2015-07-30 08:43:55 -06:00
Steve Streeting
dbf4a8be0c Support multiple refs in fetch command 2015-07-30 10:03:21 +01:00
Rick Olson
202ae122d4 update the shebang lines to use bash 2015-07-29 20:37:31 -06:00
Steve Streeting
f55d805cd0 Fix fetch test, only downloads now, doesn't check out 2015-07-24 15:07:51 +01:00
Rick Olson
9928f733a8 implement refute_server_object and assert_server_object 2015-07-06 12:19:18 -06:00
rubyist
048630500d Fix race condition in fetch, add integration tests 2015-06-20 12:10:54 -04:00