Commit Graph

42 Commits

Author SHA1 Message Date
Artem V. Navrotskiy
075be829f4 Add lfs.storage parameter for overriding LFS storage location 2017-07-07 10:39:55 +03:00
risk danger olson
5d6ac6268d sanitize ssh options parsed from ssh:// url 2017-05-19 09:25:22 -06:00
risk danger olson
816c5d5338 drop lfs.batch support, its always true now 2017-02-13 14:30:59 -07:00
risk danger olson
0951c698ad test: env test should look for GIT_SSH too 2017-01-04 12:24:07 -07:00
risk danger olson
f92bd3b214 remove deprecated features 2016-11-18 07:44:20 -07:00
Taylor Blau
bca03c562d commands,lfs,test: rename command to filter-process 2016-11-08 13:17:41 -07:00
Lars Schneider
d874af9ac1 wip 2016-11-02 16:51:14 -06:00
Steve Streeting
f534b6a1e7 Sort transfers in env so results are deterministic 2016-07-27 14:42:00 +01:00
Steve Streeting
b5750bd6bf Remove redundant part of test, over generous copy & paste 2016-07-27 11:38:33 +01:00
Steve Streeting
be266f29f9 Report actual list of transfers that will be tried from git lfs env 2016-07-27 11:34:34 +01:00
risk danger olson
c4f45879d4 update env tests with TusTransfers value 2016-07-26 08:52:15 -06:00
Steve Streeting
b051a4169d Add lfs.basictransfersonly option to disable non-basic transfer adapters
Will be useful as a workaround where there are server bugs & avoid having
to retry across adapters without knowing whether the cause is transient
or not.
2016-06-09 11:45:24 +01:00
Steve Streeting
601deee82c Add missing config details to env command 2016-05-12 16:03:03 +01:00
Steve Streeting
6d67a1b36c Add SkipDownloadErrors to env & update tests 2016-05-10 11:39:09 +01:00
Jukka Lehtniemi
5069ecdfce Add support for reference clone 2016-04-05 22:06:44 +03:00
epriestley
fa2ec2fb70 Fix smudge/clean filters to work with filenames that have leading dashes
Fixes issue #1072. Currently, `git-lfs` installs filters which misinterpret
filenames with leading dashes as command line flags. Separate paths with a
double dash (`--`) when installing filters so these files are handled
properly.

The failing test now passes:

```
$ ./test/test-unusual-filenames.sh
...
test: push unusually named files ...                               OK
test: pull unusually named files ...                               OK
```
2016-03-17 14:46:18 -07:00
risk danger olson
e836c1ff8a use .lfsconfig (with fallback to .gitconfig) 2015-11-16 12:53:01 -07:00
risk danger olson
b5fa32f7aa add an env test to confirm 2015-11-16 12:17:07 -07:00
Steve Streeting
8f89a0b7f6 Fix bare repo env test on Windows (new after rebase) 2015-10-22 16:16:57 +01:00
Steve Streeting
2a94f13d6a Missed a string test 2015-10-22 16:16:56 +01:00
Steve Streeting
22d546a08d Use order/blanks agnostic comparator for env tests
Give up trying to get the exact format to conform in all cases across
platforms & with varying environments. All we care about is whether the
right elements are there. This version is much more robust and doesn't
care about ordering or blanks
2015-10-22 16:16:55 +01:00
Steve Streeting
1671fc4ad3 Fix env tests again; now there can be 0 GIT_* env vars
This started to fail when GIT_TRACE was removed since there were no
matching env vars and the spurious newline caused a mismatch
2015-10-22 16:16:54 +01:00
Steve Streeting
49bf10dbd9 All env tests working on Windows
One issue: had to sort the results of the environment to make
comparisons consistent, appears that the ordering is not guaranteed and
that was failing some tests
2015-10-22 16:16:52 +01:00
Steve Streeting
06c5bead00 3rd env test working on Windows 2015-10-22 16:16:15 +01:00
Steve Streeting
930f5ae368 Another env test fixed on Windows 2015-10-22 16:16:15 +01:00
Steve Streeting
4c1e5ac12d Fix the first Windows integration test error, paths
We have to be able to convert from MinGW paths to native Windows paths,
and also to handle those paths in Bash without the '\' characters
escaping into tabs etc. This commit fixes the very first test in
test-env.sh as a proof of concept
2015-10-22 16:16:14 +01:00
risk danger olson
ef3a44a030 whitelist the valid keys from .gitconfig 2015-10-20 10:31:56 -06:00
Steve Streeting
9511e5740b Fix resolve of git dirs finding a parent non-bare repo if run in a bare repo
Use `git rev-parse` to locate all dirs instead of manually recursing.
Could potentially remove manual processing of GIT_DIR and GIT_WORK_TREE
in future.

Had to remove test for using relative GIT_WORK_TREE with no GIT_DIR,
git rev-parse always fails in that case so it appears it's not supported
by git even though man git-config claims it is
2015-09-30 15:56:17 -07:00
Rick Olson
8d1875aadd add filter.lfs configs to 'git lfs env' 2015-09-23 14:02:22 -06:00
risk danger olson
7440f60268 fix tests 2015-09-01 15:54:47 -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
cab91e4b86 Fix tests 2015-07-31 12:48:51 +01:00
Steve Streeting
66ebac22a7 Fixed support for worktree
Issue is that during 'git worktree add', git uses GIT_DIR to locate the
worktree girder, which then resolves via commondir. When actually running
in the worktree, it follows .git/git-dir THEN commondir. Generalised so
this now works, and introduced LocalGitStorageDir.
2015-07-31 12:17:50 +01:00
Rick Olson
202ae122d4 update the shebang lines to use bash 2015-07-29 20:37:31 -06:00
Michael Käufl
11d61307b6 Updated env tests 2015-06-18 07:24:53 -06:00
Michael Käufl
5bd7026747 Added tests for env vars GIT_DIR and GIT_WORK_TREE 2015-06-17 00:53:24 +02:00
Michael Käufl
6e0e7ab946 Added failing env test with .gitconfig file 2015-06-01 20:49:28 +02:00
Michael Käufl
1b555160f0 Added missing env test in .git directory 2015-06-01 20:48:39 +02:00
Rick Olson
589592c32e fix env tests 2015-05-27 14:09:58 -06:00
Rick Olson
9cb9d86bfd update env tests for different GIT_* env vars 2015-05-26 16:37:36 -06:00
Rick Olson
e2b2716853 == is bash only, use = for string comparisons 2015-05-26 16:15:52 -06:00
Rick Olson
793d894fe8 port env tests 2015-05-26 11:48:24 -06:00