The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil. This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
Closes#1701.
* dolt/go/cmd/git-dolt/utils/find_git_config_dir*.go: Add util for finding git directory in parent directory structure
* dolt/bats/git-dolt.bats: Add test for git dolt install working in subdirectories of git repos
* dolt/go/cmd/git-dolt/commands/install.go: Find the .git directory even if it's in a parent of the working directory
* dolt/bats/git-dolt.bats: Fix indentation
* dolt/go/cmd/git-dolt/utils/find_git_config_dir.go: Omit extraneous type annotation like a good Gopher
* dolt/go/cmd/git-dolt: Use filesystem root instead of home directory as terminal path for .git search
* dolt/bats/git-dolt.bats: Unskip no-longer-hanging test
* dolt/go/cmd/git-dolt/utils/find_git_config_dir.go: Add method docs
* dolt/go/cmd/git-dolt/utils/find_git_config_dir_test.go: Create all test files in a temp directory
* dolt/go/cmd/git-dolt/utils/find_git_config_dir*.go: Return an error instead of hanging when currentPath is not a descendent of terminalPath
* dolt/go/cmd/git-dolt: Gofmt
* dolt/go/cmd/git-dolt/utils/find_git_config_dir.go: Actually, if these are always absolute paths, we can simplify things a bit
* dolt/go/cmd/git-dolt/config/config.go: Add package comment
* dolt/go/cmd/git-dolt: Factor CloneToRevision function out of Fetch command
* dolt/go/cmd/git-dolt: Factor AppendToFile out of Link command
* dolt/go/cmd/git-dolt: Add install command
* dolt/go/cmd/git-dolt-smudge: Create git-dolt-smudge command to use as a git smudge filter
* dolt/go/cmd/git-dolt/git-dolt.go: Cleanup
* dolt/bats/git-dolt.bats: Add bats test for git dolt install
* Jenkinsfile: Add git-dolt-smudge to dolt/bats stage
* dolt/bats/git-dolt.bats: Add test for git-dolt smudge filter
* dolt/bats/git-dolt.bats: Configure fake name and email in test git repos so that committing works on Jenkins
* dolt/{bats,go}: Improve git-dolt cloning behavior (especially streaming output from dolt clone); refactor
* dolt/{bats,go}: Small tweaks to git-dolt output