Commit Graph

8 Commits

Author SHA1 Message Date
brian m. carlson
88d1af46e5
t: switch several tests to use canonical names
There are several places in our testsuite where the git-lfs binary we're
testing produces canonical paths.  Ensure that our test framework also
uses canonical paths so that our comparisons for equality do not fail
spuriously.
2019-09-09 14:30:55 +00:00
brian m. carlson
aca1aff48e
t: unset test harness variables
We set some variables for the test harness when running in CI on
Windows.  However, if these variables leak into the environment of the
Git LFS process, they'll cause the test to fail, since they'll be
printed in the env output.  Make sure that we unset them in the tests
that care about this to ensure that they don't cause failures.
2019-09-09 14:30:54 +00:00
brian m. carlson
bb05cf5053
Provide support for file URLs via a transfer agent
One commonly requested feature for Git LFS is support for local files.
Currently, we tell users that they must use a standalone transfer
agent, which is true, but nobody has provided one yet. Since writing a
simple transfer agent is not very difficult, let's provide one
ourselves.

Introduce a basic standalone transfer agent, git lfs standalone-file,
that handles uploads and downloads. Add a default configuration required
for it to work, while still allowing users to override this
configuration if they have a preferred implementation that is more
featureful. We provide this as a transfer agent instead of built-in
because it avoids the complexity of adding a different code path to the
main codebase, but also serves as a demonstration of how to write a
standalone transfer agent for others who might want to do so, much
like Git demonstrates remote helpers using its HTTP helper.
2019-08-02 17:23:47 +00:00
brian m. carlson
26f8d13f08
config: install worktree hooks in the proper directory
When using worktrees, the hooks are stored once, in the main repository,
not in a per-worktree location. Install the hooks in the proper place
instead of creating and populating a hooks directory that will never be
used.
2019-02-27 17:35:08 +00:00
Preben Ingvaldsen
b32ab6cdb0 t: fix contains_same_elements() fn
Previously, the contains_same_elements() function was causing
tests to immediately exit when called, meaning that portions of
many tests were being inadvertently skipped. This fixes the
contains_same_elements() function so it no longer exits the test,
and fixes the failing tests exposed by this change.
2018-07-25 14:29:50 -07:00
Taylor Blau
9afae6f6fc Merge branch 'master' into ttaylorr/prove 2018-07-17 12:54:38 -05:00
Taylor Blau
de9152049c t: load shell scripts from $(dirname) instead of 't' 2018-07-10 13:51:40 -05:00
Taylor Blau
219b7e0a3d t: prefix all existing tests with t- 2018-07-09 16:24:25 -05:00