1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-25 04:43:08 +03:00

added tests and fixed bug found in tests

This commit is contained in:
Nathan Bell
2020-11-23 12:25:44 -07:00
committed by Jesse Duffield
parent c4cce58464
commit e05c41828c
2 changed files with 70 additions and 8 deletions

View File

@@ -26,7 +26,9 @@ func (c *GitCommand) usingGpg() bool {
func (c *GitCommand) Push(branchName string, force bool, upstream string, args string, promptUserForCredential func(string) string) error {
followTagsFlag := "--follow-tags"
followsign, _ := c.getLocalGitConfig("push.followTags")
if followsign == "" {
if followsign == "false" {
followTagsFlag = ""
} else if followsign == "" {
followsign, _ = c.getGlobalGitConfig("push.followTags")
if followsign == "false" {
followTagsFlag = ""