mirror of
https://github.com/dolthub/dolt.git
synced 2026-04-21 02:57:46 -05:00
c83472fba6
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