Commit Graph

6 Commits

Author SHA1 Message Date
brian m. carlson
f68ce7517b
install: don't print error if run outside repository
As of 2.9.2, if run outside of a repository, Git LFS will produce an
error if `git lfs install` is run outside of a repository.  This occurs
because we look for a specific string in the error message to detect if
the directory is not a repository, but that message was no longer
included since the standard output of `git rev-parse` is not included.

Include the standard error output in the message so that we correctly
detect whether the directory is a repository or not and avoid printing
an error message in this case if it is not.
2020-01-03 15:55:26 +00:00
Marat Radchenko
482260c7e3 Fix error strings to follow Go guidelines
Error strings should not be capitalized (unless beginning with proper nouns or acronyms) or end with punctuation:
https://github.com/golang/go/wiki/CodeReviewComments#error-strings
2019-10-22 17:33:49 +03:00
brian m. carlson
b281e4dafc
t/t-install: make test work when run as root
We build CentOS packages as root in the container, and root is not
constrained by a lack of write permission on a directory. Since one of
this test's assertions cannot work without us being able to test
permissions properly, disabled the test when run as root.
2019-07-15 16:40:30 +00:00
brian m. carlson
743f9b3ade
command/install: exit unsuccessfully on error
When git lfs install fails, exit unsuccessfully, so that the users
writing scripts can easily detect this error. Disable the test on
Windows, which does not have the proper chmod behavior to make the test
work.
2019-04-24 17:28:55 +00: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