Commit Graph

8 Commits

Author SHA1 Message Date
Hidetoshi Hirokawa
0f1e9b7523 tq/adapterbase: fix typo enableHrefRerite to enableHrefRewrite 2019-04-04 11:04:00 +09:00
Hidetoshi Hirokawa
a935aec8ab tq/adapterbase: add lfs.transfer.enablehrefrewrite config
For backward compatibility and some incompatible situations such as
using SSH protocol, href-rewriting is only enabled if
lfs.transfer.enablehrefrewrite is set to true explicitly.
2019-04-03 13:01:37 +09:00
Hidetoshi Hirokawa
7da4901957 tq/adapterbase: support rewriting href
Use insteadOf/pushInsteadOf aliases to rewrite href to upload/download
LFS objects. This is useful in situations such like you need to access
the LFS server via a reverse proxy.
2019-04-02 17:48:21 +09:00
brian m. carlson
b2ddccd90d t: avoid using shell variables in printf's first argument
The printf(1) command, like it's C cousin, takes a format string as its
first argument.  If a shell variable is passed as the first argument, it
will be interpreted as a format string; this can lead to surprising
behavior and can cause the test suite to fail if we accidentally insert
a format string character into the variable.

Modify all the places in the individual tests that we use a plain quoted
variable as the format string by running the following Ruby one-liner:

  ruby -i -pe '$_.gsub!(/printf "\$/, %q(printf "%s" "$))' t/t-*.sh

Avoid modifying the test helpers, as there are places (such as calc_oid)
where we want to pass text containing escapes (such as "\n") and have
those be properly interpreted by printf(1).
2018-09-10 14:57:10 +00:00
Preben Ingvaldsen
18f4e03230 config: add origin to remote list
Previously, origin was being explicitly excluded from the list
of remotes. This could cause the wrong remote to be used in some
cases, such as with `git lfs pull`, and for the `origin` remote to
be missed in `git lfs env`. This commit ensures that the remote
list has the correct contents, and that `git lfs pull` and
`git lfs env` now function as expected.
2018-07-26 11:40:47 -07:00
Taylor Blau
71d013a108 t: fix string constant in t-pull.sh 2018-07-12 12:39:39 -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