summaryrefslogtreecommitdiffstats
path: root/pkg/commands/sync.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-04-10 11:40:42 +1000
committerJesse Duffield <jessedduffield@gmail.com>2021-04-10 11:54:38 +1000
commite42e7e5cbd9d075ee24ae8f91ba9e12bdd42fafc (patch)
tree61d65a544c056b3bf0384cf6954b81b292eb4b07 /pkg/commands/sync.go
parent93fac1f3124f87009091230f61cc13b5e5473cb5 (diff)
fix commit amend
Diffstat (limited to 'pkg/commands/sync.go')
-rw-r--r--pkg/commands/sync.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/pkg/commands/sync.go b/pkg/commands/sync.go
index 97a6e4748..e3be30dc1 100644
--- a/pkg/commands/sync.go
+++ b/pkg/commands/sync.go
@@ -2,23 +2,8 @@ package commands
import (
"fmt"
- "strings"
)
-// usingGpg tells us whether the user has gpg enabled so that we can know
-// whether we need to run a subprocess to allow them to enter their password
-func (c *GitCommand) usingGpg() bool {
- overrideGpg := c.Config.GetUserConfig().Git.OverrideGpg
- if overrideGpg {
- return false
- }
-
- gpgsign := c.GetConfigValue("commit.gpgsign")
- value := strings.ToLower(gpgsign)
-
- return value == "true" || value == "1" || value == "yes" || value == "on"
-}
-
// Push pushes to a branch
func (c *GitCommand) Push(branchName string, force bool, upstream string, args string, promptUserForCredential func(string) string) error {
followTagsFlag := "--follow-tags"