Commit Graph

10 Commits

Author SHA1 Message Date
Eng Zer Jun
8164a625c7 refactor: move from io/ioutil to io and os package
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>
2021-10-05 01:40:59 +08:00
Daylon Wilkins
6b2b68923b Further attempts to fix ACCESS_DENIED error on Windows 2021-07-15 13:26:59 -07:00
Aaron Son
84c3066348 go/**/*.go: Update copyright headers for company name change. 2020-11-02 10:17:02 -08:00
Aaron Son
732086a9c7 dolt/go: Add copyright notices to every file. For files from noms, retain and reference the previous copyright notice as well. 2019-07-22 17:06:35 -07:00
Matt Jesuele
c4e1099ebb dolt/go/cmd/git-dolt/utils/find_git_config_dir.go: Fix tiny misspelling in comment 2019-07-10 15:50:15 -07:00
Matt Jesuele
5fe651992b dolt/go/cmd/git-dolt/utils/find_git_config_dir_test.go: Nix unnecessary underscores in testdir names 2019-07-10 08:35:30 -07:00
Matt Jesuele
c83472fba6 dolt/{bats,go}: git dolt install finds the .git directory even if it's in a parent directory (#1715)
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
2019-07-09 17:44:28 -07:00
Matt Jesuele
190e73e95e dolt/go/cmd/git-dolt/utils/utils_test.go: Add unit tests of dubious necessity for LastSegment 2019-07-02 11:55:40 -07:00
Matt Jesuele
bd212a8260 dolt/go/cmd/git-dolt{,-smudge}: Add git smudge filter for git-dolt (#1651)
* 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
2019-07-01 11:46:02 -07:00
Matt Jesuele
ba173837aa dolt/{bats,go}: Factor git-dolt into several packages 2019-06-25 14:18:01 -07:00