summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-12-24 13:30:13 +1100
committerJesse Duffield <jessedduffield@gmail.com>2021-02-08 14:40:30 -0800
commite7fff2529ce7243d3d1b690d2ce553dd0de040ec (patch)
treece3ea79424d5c49ecfb6d13cacd63990feae1e5d
parent78867647d108352888aa4c751ad4f952757bcbdd (diff)
fix lint error
-rw-r--r--pkg/commands/gitconfig.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/commands/gitconfig.go b/pkg/commands/gitconfig.go
index ed31f6f29..dbe72c570 100644
--- a/pkg/commands/gitconfig.go
+++ b/pkg/commands/gitconfig.go
@@ -36,7 +36,7 @@ import (
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
func getGitConfigValue(key string) (string, error) {
- gitArgs := append([]string{"config", "--get", "--null", key})
+ gitArgs := []string{"config", "--get", "--null", key}
var stdout bytes.Buffer
cmd := secureexec.Command("git", gitArgs...)
cmd.Stdout = &stdout