We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a19e51b commit a3fc503Copy full SHA for a3fc503
internal/git/commit.go
@@ -57,15 +57,11 @@ func (c *Connection) HasChanges() (bool, error) {
57
return false, fmt.Errorf("directory is not specified")
58
}
59
60
- msg, err := git.Raw("update-index", runGitIn(directory), func(g *types.Cmd) {
+ git.Raw("update-index", runGitIn(directory), func(g *types.Cmd) {
61
g.AddOptions("--refresh")
62
})
63
- if err != nil {
64
- log.Error().Err(err).Str("output", msg).Msg("Failed to refresh index")
65
- return false, err
66
- }
67
68
- _, err = git.Raw("diff-files", runGitIn(directory), func(g *types.Cmd) {
+ _, err := git.Raw("diff-files", runGitIn(directory), func(g *types.Cmd) {
69
g.AddOptions("--quiet")
70
71
if err != nil {
0 commit comments