Skip to content

Commit 498f0d7

Browse files
committed
refactor
1 parent 0079eff commit 498f0d7

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/workflows/test.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
run: |
2323
git config --global core.autocrlf false
2424
git config --global core.eol lf
25+
git version
26+
which git
2527
if: "matrix.os == 'windows-latest'"
2628
- name: checkout
2729
uses: actions/checkout@v3

cmd_root_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ import (
1111
"github.com/Songmu/gitconfig"
1212
)
1313

14-
func samePath(lhs, rhs string) bool {
15-
return lhs == rhs
16-
}
17-
1814
func samePaths(lhs, rhs string) bool {
1915
if runtime.GOOS != "windows" {
2016
return lhs == rhs

local_repository.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,8 @@ func localRepositoryRoots(all bool) ([]string, error) {
352352
} else {
353353
var err error
354354
roots, err = gitconfig.PathAll("ghq.root")
355+
roots2, _ := gitconfig.GetAll("ghq.root")
356+
logger.Log("info", fmt.Sprintf("%v", roots2))
355357
if err != nil && !gitconfig.IsNotFound(err) {
356358
_localRepoErr = err
357359
return

local_repository_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func samePathSlice(lhss, rhss []string) bool {
3030
sort.Strings(lhssAbs)
3131
sort.Strings(rhssAbs)
3232
for i := range lhssAbs {
33-
if !samePath(lhssAbs[i], rhssAbs[i]) {
33+
if lhssAbs[i] != rhssAbs[i] {
3434
return false
3535
}
3636
}

0 commit comments

Comments
 (0)