Commit Graph

20 Commits

Author SHA1 Message Date
Taylor Blau
624d85684d commands/track: quote pattern in output of track command 2017-03-24 11:13:11 -06:00
risk danger olson
ed20a7153b GIT_TERMINAL_PROMPT=0 is supported on enough versions of git 2016-07-15 15:38:02 -06:00
risk danger olson
18de3ae7fe enable credential.usehttppath by default in tests 2016-07-15 15:05:06 -06:00
risk danger olson
a1d0ba795a update credential tests with good and bad tests for pushes and fetches 2016-04-08 14:16:48 -06:00
Jonathan Hoyt
5d076c57b1 Add tests showing that credentials in lfs.url or remote url are used 2016-04-08 10:41:13 -07:00
Steve Streeting
f1e87af296 Fix netrc tests on Windows 2016-03-15 17:00:01 +00:00
risk danger olson
e5ff9c9349 merge cred-fixes 2015-11-18 09:53:16 -07:00
risk danger olson
88d1f7af56 hide the problematic test behind a git 2.3 check 2015-11-18 09:46:39 -07:00
risk danger olson
f5966257bd move credential error handling to fillCredentials()
by the time fillCredentials() is called, git lfs knows that auth is
required. So if git-credential doesn’t return any, always return an
error
2015-11-18 08:57:09 -07:00
risk danger olson
da37a83741 halt if creds are needed but not found 2015-11-17 17:25:44 -07:00
rubyist
7a86b2b5f5 Test with bad credentials in netrc 2015-10-07 00:17:06 -04:00
rubyist
91195f6f6f Add integration tests for netrc 2015-10-07 00:14:09 -04:00
rick
54601c6d34 introduce calc_oid() helper for integration tests 2015-09-21 11:50:22 -06:00
rick
f6d1f99316 skip these tests if GIT_LFS_TEST_DIR is unset 2015-09-08 14:12:51 -06:00
Rick Olson
5b77244702 backing out of this test 2015-08-28 14:13:42 -06:00
Rick Olson
a3a03075d8 test the output if git-credential doesnt fail 2015-08-28 14:10:55 -06:00
Rick Olson
9829d26136 simplify creds 2015-08-28 13:38:56 -06:00
Billy Gor
f3bf4ea90b major pre-push optimization
this change improves drastically pre-push behaviour, by not sending
lfs objects which are already on a remote. Works perfectly with
pushing new branches and tags.

currently pre-push command analyse "local sha1" vs "remote sha1" of the
ref being pushed and if "remote sha1" is available locally tries to send
only lfs objects introduced with new commits.

why this is broken:
- remote branch might have moved forward (local repo is not up to date).
  In this case you have no chance to isolate new lfs objects ("remote sha1"
  does not exist locally) and git-lfs sends everything from the local
  branch history.
- remote branch does not exist (or new tag is pushed). Same consequences.

But what is important - local repository always have remote references,
from which user created his local branch and started making some local
changes. So, all we have to do is to identify new lfs objects which do
not exist on remote references. And all this can be easily achieved with
the same all mighty git rev-list command.

This change makes git-lfs usable with gerrit, where changes are uploaded
by using magic gerrit branches which does not really exist. i.e.
git push origin master:refs/for/master

in this case "refs/for/master" does not exist and git feeds all 0-s as
"remote sha1".
2015-08-17 10:59:08 +02:00
Rick Olson
69aee5358e add more credential tests 2015-08-04 11:55:44 -06:00
Rick Olson
2929402217 add rudimentary auth check 2015-08-04 11:13:46 -06:00