Skip to content

Commit

Permalink
Fix git amend null config
Browse files Browse the repository at this point in the history
commit-id:f155841d
  • Loading branch information
ejoffe committed Jul 8, 2021
1 parent 932d8e8 commit 0337c8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/amend/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func main() {
os.Exit(0)
}

gitcmd := realgit.NewGitCmd(&config.Config{})
gitcmd := realgit.NewGitCmd(config.EmptyConfig())

// check that we are inside a git dir
var output string
Expand Down
2 changes: 1 addition & 1 deletion spr/spr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ func TestSPRReorderCommit(t *testing.T) {

func TestParseLocalCommitStack(t *testing.T) {
var buffer bytes.Buffer
sd := NewStackedPR(&config.Config{}, nil, nil, &buffer)
sd := NewStackedPR(config.EmptyConfig(), nil, nil, &buffer)
tests := []struct {
name string
inputCommitLog string
Expand Down

0 comments on commit 0337c8a

Please sign in to comment.